Configuring Tomcat time zone

Tomcat uses the GMT time zone. If you want to change it, add the following to $TOMCAT_HOME/bin/setenv.sh (or $TOMCAT_HOME/bin/setenv.bat if you're on Windows):  

CATALINA_OPTS="-Duser.timezone=Asia/Hong_Kong"

More information about time zone list.

Table of contents [ Hide Show ]