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
Comments