Changing the Displayed Time Zone for Audit Logs
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- Even after changing the time zone for the instance within the Instance Settings, the time zone for the Create Date for the logs in Audit are still displayed in UTC.
Environment
- Liferay DXP 7.4 Quarterly Release 2024.Q2
Resolution
- The Audit table, along with most other tables in Liferay have their create and modified date values set by the JVM, which is set to GMT (UTC) and should not be changed.
- However, the date that is displayed for the user when the view the Audit table through the UI is based on the users individual time zone setting. The users time zone setting is set to whatever the Instance time zone is when the user was created.
- I.E.: If a user existed prior to changing the Instance to a specific time zone, that user will still have their time zone set to the prior specified time zone
- To change the displayed time zone for existing users, go to Control Panel -> Users -> Users and Organizations and select any user that you would like to change their displayed time zone.
- Go to the Preferences tab -> Display Settings and the user's time zone can be changed there.
- Any user created in the future will have their time zone automatically set to the Instance time zone
Did this article resolve your issue ?