Possible Wrong Timestamp Information When Oracle Server and JDK Have Conflicting Timezone Information
(Doc ID 1941076.1)
Last updated on OCTOBER 17, 2022
Applies to:JDBC - Version 18.104.22.168.0 to 22.214.171.124.0 [Release 11.2 to 12.1]
Information in this document applies to any platform.
When inserting timestamps into the database, the timestamp information may be incorrect during occasions when there is a time change, such as Daylight Savings Time (DST). The problem occurs during the hour that is repeated after moving the clock back (for example, between 1 AM and 2 AM).
For example, given an 126.96.36.199 JDBC driver and an 188.8.131.52 database:
In the database, the value for a timestamp column is 1924-03-30 00:00:00.
When writing the same value through JDBC, it is written as 1924-03-29 23:00:00.
In other words, the values differ by an hour.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document