Knowledge Base
Published Sep. 10, 2025

Updating the Time Zone of All Users in your Instance

Written By

Jorge Diaz

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.

Introduction

Liferay supports localization by language, time zone, and more. While Liferay has a default configuration for time zones, you can set the platform to use any standard time.

After installing Liferay and creating all users, a company noticed that the instance and all users are configured with the default time zone (UTC). However, they should be updated to the correct one: Europe/Paris.

In this article, you'll perform a bulk update of the time zone of all existing users in your instance.

Environment

  • DXP 7.0, 7.1, and 7.2
  • Portal 6

Steps

  1. Pick a valid time zone ID from the time.zones property in this portal.properties file. For example, Europe/Paris.
  2. Stop all Liferay server nodes.
  3. Perfome a backup of your database and Liferay environment before doing any change.
  4. Execute the following SQL updates (replace Europe/Paris with your own time zone):
    update User_ set timeZoneId = 'Europe/Paris'
    update Calendar set timeZoneId = 'Europe/Paris'
  5. Start all Liferay server nodes.

Important Notes:

  • Changing the instance's default time zone from the configuration menu doesn't update the time zone of the existing users.
  • To avoid major issues, contact Liferay's Support team for assistance and further guidance before executing SQL updates directly to the database.
  • Always configure time zones at the instance or user levels. The JVM's default time zone (UTC) should not be changed to avoid job scheduling issues and incorrect behavior. See the Things Liferay Won't Say blog post for more information.

Additional Information

Did this article resolve your issue ?

Knowledge Base