JVM not taking Daylight Time changes in the server

568 views Asked by At

We have 4 servers in production, and all of their times are being synchronized using NTP(Network Time Protocol) server, all of these servers in NewZealand, and as part of the Daylight, the servers been advanced to 1 hour i.e +1200 to +1300, but it seems like all applications that use JVM are struck at +1200.

so i wrote a piece of code to display time and that confirmed JVM is not taking the daylight savings. Any suggestions or explanation about this behavior. between i don't want to recommend to restart the server as its production box.

We are using ibmJDK rather than Oracle JDK.

1

There are 1 answers

0
Juraj Martinka On

Has the particular daylight-saving rule you're referring to changed recently or has it been around for many years?

Java uses its own internal timezone database, not the system's one.

Check if java timezone database on servers is up to date. If not, then you may need to consider JDK update - especially if you're running an old release.

You can find more details here: https://www.oracle.com/technetwork/java/javase/timezones-137583.html

This table can also help to find the particular version of your timezone database (but I'm not sure about IBM JDK specific stuff): https://www.oracle.com/technetwork/java/javase/tzdata-versions-138805.html