top of page

Subscribe to Wisdom

Thanks for Subscribing!

  • Writer's pictureDimit Chadha

TimeZone Aware Tomcat

Updated: Apr 21, 2022



You can set the timezone in which you want to run your tomcat. This helps in case tomcat hostimg multiple timezone applications, thus required a need to set a universal time zone so that reports , database operations are all performed in single time zone


- Create a setenv.bat (Windows) or setenv.sh (Ubuntu,Linux etc) file in {tomcat Directory}/bin

& include the following

set JAVA_OPTS=-Duser.timezone=UTC

Restart the Tomcat Server

{tomcat Directory}/bin/startup.sh or startup.bat





9 views0 comments

Recent Posts

See All

Comments


Modern Digital Watch
bottom of page