Setting Custom Timezones in Liferay

By default Liferay uses UTC as timezone. In order to set custom timezones you may choose from the following options:

  1. Create an EXT-Plugin
  2. Specify timezone in Tomcat’s setenv script


Create an EXT-plugin (or use your existing one) and put in extyour-extdocrootWEB-INFext-implsrc using the following setting:


Be sure the deploy and restart Tomcat afterwards. Also, check via the Control Panel in Server Administration / System properies that the timezone attribute has been applied correctly.

Setenv Script

The other option is to set your desired timezone in Tomcat’s setenv script located in tomcat/bin by using the following command:


Depending on your operating system you will need to configure setenv.bat (Windows) or

Liferay Developer Studio

If you happen to use Liferay Developer Studio you can easily set your desired timezone using the server properties, as shown below:

1 thought on “Setting Custom Timezones in Liferay”

  1. hi ,
    I am setting these properties in the
    but still its showing UTC time.
    And I am doing this for LR 7.0
    Thanks in advance

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top