Bug in jdk8 date-conversion?
问题 I was writing some testcode for java-8 conversion between java.util.Date and java.time.LocalDateTime , and discovered an anomaly seems to occur in the hour after the transition from normaltime-to-summertime, when the year is 2038 or higher. I just wanted to know if this is a bug in jdk8, or if I am doing something wrong? Note: I am on Windows-7, 64-bit jdk, so should not be affected by the 2038-unix bug, which would have a much worse effect. Here my demo-code: package conversiontest; import