eh3rrera / ocpj8-book

Study guide for the Oracle Certified Professional, Java SE 8 Programmer Exam (1Z0-809)
Other
131 stars 91 forks source link

TimeZone Daylight savings #84

Open anasos opened 5 years ago

anasos commented 5 years ago

Hi,

At Chapter TWENTY-TWO Time Zones and Daylight Savings I think there is an issue with the example of when DST ends

You have put as a result of the following code

LocalDateTime ldt = LocalDateTime.of(2015, 10, 25, 3, 30);
System.out.println(ldt);

the following result:

2015-10-25T02:30

the LocalDateTime have no concept of time-zone

Thanks

eh3rrera commented 5 years ago

Hi @anasos. You're right, LocalDateTime have no concept of time-zone. I have removed the example, thank you so much! 👍

anasos commented 5 years ago

Hi @eh3rrera.

The thank to you for your very helpful book.