Set timezone in Tomcat

in bin/catalina.sh set:

CATALINA_OPTS=-Duser.timezone=America/New_York

catalina.sh file does say to use a setenv.sh script instead of editing the file, but I just put the above command at the top of the catalina.sh file and it was fine.

see java timezone names here

Leave a Reply