By default Liferay uses UTC as timezone. In order to set custom timezones you may choose from the following options:
- Create an EXT-Plugin
- Specify timezone in Tomcat’s setenv script
EXT-Plugin
Create an EXT-plugin (or use your existing one) and put system-ext.properties in extyour-extdocrootWEB-INFext-implsrc using the following setting:
user.timezone=Europe/Vienna
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:
-Duser.timezone=Europe/Vienna
Depending on your operating system you will need to configure setenv.bat (Windows) or setenv.sh.
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: