Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
LocalDateTime conversion fails on DST transition #538
I have outlined the issue in this blog post.
In short: Relying on the default time zone when converting from partial to instant is not safe.
added a commit
Nov 5, 2013
You can simplify LocalTime by just calling
This is also more in line with the JDBC spec which says that the date parts should be 1970-1-1.
Otherwise the changes look good to me. It would be a good idea to add a cross-database test for dates and times. With all the corner cases like leap years and DST transitions.