DateTimeFormatter dtf4 = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.LONG);
LocalDateTime ldt1=LocalDateTime.now();
System.out.println(dtf4.format(ldt1));
情况就是在第一行代码中当我输入FormatStyle.LONG时就会报java.time.DateTimeException: Unable to extract ZoneId from temporal
但是我输入FormatStyle.MEDIUM或者FormatStyle.SHORT就正常输出
请问这是什么情况呢?感谢知到其中原因的朋友讲解一下