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

Allow setting timezone via configuration parameter #45

subesokun opened this Issue Jan 16, 2015 · 4 comments


None yet
4 participants

subesokun commented Jan 16, 2015

It would be awesome if you allow passing in a configuration parameter when starting the docker container in order to set the time zone. Reading out the time zone from the host might not be always sufficient e.g.:

If your Jenkins instance is running in a different location than the user's (for example: the server is in NY but users are in LA), then the NY time zone will most probably be used, which may be quite annoying if you need to compare build dates.

An implementation similar to GITLAB_TIMEZONE would be great.


This comment has been minimized.

subesokun commented Jan 16, 2015

Found now an alternative way to set the timezone via

docker run ... -e JAVA_OPTS=-Duser.timezone=UTC

But a configuration solution as in Docker Gitlab would be nice and maybe more intuitive. What do you think about that?

Nice to know: As timezone you can set also e.g. Europe/London instead of UTC

@subesokun subesokun closed this Mar 25, 2015


This comment has been minimized.

cybertk commented Aug 28, 2015



This comment has been minimized.

tnguyen14 commented Dec 18, 2015

Thanks @subesokun I was wondering about this and your solution works. Wonder if there's a nicer way. What does the configuration solution for Docker Gitlab look like?


This comment has been minimized.

Jotschi commented Sep 26, 2016

It is also possible to override the docker container timezone by appending the following volumes:
-v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment