Issue
- For business reasons the JVM's Time Zone was set to something other than UTC.
- Now we are seeing odd behavior across the bundle:
- A scheduled daily event is off by a day
- Web Content Articles are showing the incorrect time and/or date
- Within the logs we see the below
-
The default JVM time zone "EST" is not UTC or GMT. Please review the JVM property "user.timezone".
-
- Now we are seeing odd behavior across the bundle:
Environment
- Liferay 6.2
- Liferay DXP 7.0+
Resolution
- The JVM being used should be set to UTC and not changed.
Additional Information
- This Knowledge Base article goes into detail about why the JVM time zone should not be changed.
- The Can We Change the JVM Timezone Setting? section of this blog post goes into further detail as to why the JVM time zone should always be UTC.
- A second Knowledge Base article discusses how to configure Log file times to non-UTC times.
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In