My Oracle Support Banner

SetTime Difference in JDBC Driver Compared to JDBC Driver (Doc ID 1507772.1)

Last updated on JUNE 05, 2023

Applies to:

JDBC - Version and later
Information in this document applies to any platform.


After upgrading the Oracle JDBC Thin driver from to, a different behaviour is noticed in the setTime:

With Oracle JDBC driver, only the hours, minutes and seconds are set;  while in the previous driver,  the day, month and year were also set.
With Oracle JDBC driver, default date is set and the value is always 01/01/1970.
The same behaviour is seen when connecting to a or database.

How to rectify the above two issues?



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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.