title: java.time.DateTimeException: Unable to extract ZoneId from temporal
body: <p>When I run the first segment, it is perfectly fine and generate an output. but in second case when I run this segment 2, It generates</p>
  
  <pre><code>DateTimeException : Unable to extract ZoneId from temporal.
  </code></pre>
  
  <p><strong><em>segment 1:</em></strong></p>
  
  <pre><code>LocalDate ld = LocalDate.now();
  System.out.println(DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL).format(ld));
  </code></pre>
  
  <p><strong><em>segment 2:</em></strong></p>
  
  <pre><code>LocalDateTime ldt = LocalDateTime.now();
  DateTimeFormatter dtf = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.FULL);
  System.out.println(dtf.format(ldt));
  </code></pre>