Author Topic: Time zone difference in Tomcat servers  (Read 68 times)

Offline CASANOVA

  • Newbie
  • *
  • Posts: 35
  • Karma: 0
Time zone difference in Tomcat servers
« on: February 12, 2019, 02:22:28 PM »
Hi,

i have 2 Apache tomcat servers for GSS with 2 url's.

Reports from Server 1 gives the proper time where as Reports from server 2 gives me time in GMT.

i have gone through few articles from internet, it says to change the setenv.bat where the time zone is configured. But same batch file is not available in my both tomcat servers. I have referred the below link.

https://docs.openkm.com/kcenter/view/okm-6.4/configuring-tomcat-timezone.html

can anyone help me on this please.

Thanks

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 6821
  • Karma: 56331
Re: Time zone difference in Tomcat servers
« Reply #1 on: February 12, 2019, 08:54:37 PM »
If you don't have a bat, Tomcat will seek enviroment variables at the OS level too. So just declare them and should work.
U using Linux or Windows?


https://stackoverflow.com/questions/32771124/how-to-pass-environment-variable-to-tomcat-running-as-windows-service


Have a read on how Tomcat work with those variables and then you will need to adjust to your OS and configurations.