Possible Wrong Timestamp Information When Oracle Server and JDK Have Conflicting Timezone Information
Last updated on MARCH 08, 2017
Applies to:JDBC - Version 188.8.131.52.0 to 184.108.40.206.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 220.127.116.11 JDBC driver and an 18.104.22.168 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.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms