Skip to content

Configuring Tomcat timezone

Tomcat uses the GMT time zone. If you want to change it, you should add something like 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.