-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set default timezone in the origin container #25
Comments
What kinds of logs is the problem here and how do i access them? |
Any logs. If you log into a container and do time, and you do time outside the container in your host, you'll get different TimeZone, so basically when you do a build (as an example) and then you see the logs, the time you'll see is not what you would expect. There's a way to pass env variables to the container when it starts, and I think that all we need to do is set TZ='whateverTZ_you_are', for example, in my case would be, TZ='Europe/Madrid' With TZ set:
Without TZ set:
Ideally, we should get TZ from the host the cluster is running, and letting override by user if they want. |
If we just want the correct time when connecting to origin we could always do
We could find the tz this way. From http://stackoverflow.com/questions/12521114/getting-the-canonical-time-zone-name-in-shell-script if [ -f /etc/timezone ]; then echo $OLSONTZ |
Fixed |
So that logs display the same way as your hosts time.
The text was updated successfully, but these errors were encountered: