How to manually update timezone in JDK?

In OracleJDK, time zone updates are performed using the Oracle tzupdater tool. I am using OpenJDK (the zulu binary suggested by Azul) and I want to update its timezone to the latest IANA timezone. What exactly does a time zone update mean? How can I do this manually? Thanks in advance.

+2
java timezone azul-zulu
source share
1 answer

Azul recently published an open source tool for updating TZ data: https://www.azul.com/products/open-source-tools/ziupdater-time-zone-tool/

It works similarly to Oracle tzupdater, but has an Open Source license (GPLv2 license).

Usage: apply it to the IANA data package using Java you want to update:

$JAVA_HOME/bin/java -jar ziupdater.jar -l file://[path]/tzdata.tar.gz 

With this command, you apply the time zone changes to your Java installation.


What does it mean?

Consider the following situation: you installed Java a year ago, and then the government of a certain country changed its laws, for example. canceled by DST. Your Java installation does not yet know about this and may not handle the time correctly for this region. Updating time zone data solves this.

+1
source share

All Articles