Issue
In countries where Daylight Savings Time (Summer Time) is defined each year the timezone data (TZData) can be outdated. This procedure can help you fetch the version of the TZData currently in use in your Java Virtual Machine, which can be later cross-referenced with Oracle's or IANA's TZData official releases to check if an update is necessary.
Environment
- Any Liferay Portal or DXP version.
Resolution
- On the main portal instance, go to Control Panel > Configuration > Server Administration and the Script tab.
- Paste the following Groovy script and click Execute.
String output = java.time.zone.ZoneRulesProvider.getVersions("UTC").lastEntry().getKey();
out.println( "Java vendor: " + System.getProperty("java.vendor"));
out.println( "Java version: " + System.getProperty("java.version"));
out.println( "TZData data file version: " + output ) ;
- The output should be something like:
Java vendor: Azul Systems, Inc.1.8.0_282 Java version: 1.8.0_282 TZData data file version: 2020d
- Use the information provided (2020d in the example output above) to see if your JVM's TZData needs updating from Oracle's Timezone Data Versions page.
- If required, consult the documentation for Oracle's Timezone Updater Tool for more details on how to update TZData.
Additional Information