toverainc / willow-application-server

Willow Application Server
Apache License 2.0
19 stars 8 forks source link

WAS and WIS does not have the same time as server #20

Open bert269 opened 1 year ago

bert269 commented 1 year ago

How so I sync up the containers time with the server? They seem to have GMT time as the default and it makes debugging a little difficult. My server's locale it set to US/mountain and the time reported by DATE command is correct, but when I look a the time stamps in the container logs after rebooting, WIS, WAS and NGinx reports times that are 6 hours ahead. The only place where I set the time was on the WAS confiruation page as America/Denver (which is the same zone as US/Mountain).

stintel commented 12 months ago

Timezone in the WAS configuration page is to set the timezone to be used by Willow. To set the timezone inside the container, pass an environment variable TZ to the container, set to the correct timezone. E.g. TZ=Europe/Podgorica.