Difference between revisions of "Change Tomcat timezone"
From OpenKM Documentation
(Created page with 'Tomcat works in GMT timezone if you want to change it you should add something like at $TOMCAT_HOME/bin/setenv.sh ( or setenv.bat if you're on Windows ): CATALINA_OPTS=-Duser.t…') |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
Tomcat works in GMT timezone if you want to change it you should add something like at $TOMCAT_HOME/bin/setenv.sh ( or setenv.bat if you're on Windows ): | Tomcat works in GMT timezone if you want to change it you should add something like at $TOMCAT_HOME/bin/setenv.sh ( or setenv.bat if you're on Windows ): | ||
− | + | <source lang="bash"> | |
+ | CATALINA_OPTS="-Duser.timezone=Asia/Hong_Kong" | ||
+ | </source> | ||
+ | |||
+ | Take a look here for a [http://tutorials.jenkov.com/java-date-time/java-util-timezone.html timezone list] | ||
[[Category: Installation Guide]] | [[Category: Installation Guide]] |
Latest revision as of 19:12, 1 December 2012
Tomcat works in GMT timezone if you want to change it you should add something like at $TOMCAT_HOME/bin/setenv.sh ( or setenv.bat if you're on Windows ):
CATALINA_OPTS="-Duser.timezone=Asia/Hong_Kong"
Take a look here for a timezone list