-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
8u281, 17
Customer report that running the following code gives incorrect result. i.e One hour is added to the timestamp while in DST.
java.sql.Timestamp ts1 = Timestamp.valueOf("2019-03-10 02:46:18");
//returns 2019-03-10 03:46:18
//expected 2019-03-10 02:46:18
Environment timezone is localtime.
java.sql.Timestamp ts1 = Timestamp.valueOf("2019-03-10 02:46:18");
//returns 2019-03-10 03:46:18
//expected 2019-03-10 02:46:18
Environment timezone is localtime.
- relates to
-
JDK-8258586 Timestamp.valueOf() add one hour to the timestamp because of daylight saving time
-
- Closed
-