configuring timezones

Hello devs, how can i set up different time zones in tomcat server for two different openmrs-standalone application?..

For Windows - Go to catalina.bat and add CATALINA_OPTS property(under start).

:doStart shift set CATALINA_OPTS=-Duser.timezone=UTC/EAT.

If you want to change it from eclipse… Run --> Run configuration --> Apache tomcat --> Tomcat Server --> VM arguments add -Duser.timezone=UTC/EAT.

1 Like

where do i find catalina.bat in the standalone app

@reagan for the standalone, open the file and set the time zone using -Duser.timezone as in this example:

1 Like

Thanks @dkayiwa