Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Stuck at UTC time - Not using docker container time? #6

Closed
knaku opened this issue Jan 28, 2019 · 2 comments
Closed

Stuck at UTC time - Not using docker container time? #6

knaku opened this issue Jan 28, 2019 · 2 comments

Comments

@knaku
Copy link

knaku commented Jan 28, 2019

I am stuck with UTC time when running kimai as a docker instance. I have ensured that both my kimai and mysql docker instance is in the correct timezone and not UTC.

I have tried using both -v /etc/localtime:/etc/localtime:ro and -e "TZ=Continent/City" as well as using tzdata, not that either should give a different result.

How to repeat:
(Use Amsterdam timezone as an example which is +1 hour of utc time)
docker run --rm -ti -p 8080:8080 --name kimai2 kimai/kimai2 -e "TZ=Europe/Amsterdam" (... etc)

@tobybatch
Copy link
Owner

tobybatch commented Jan 31, 2019

@knaku I'll support for setting TZ via an env var. I think this will suffice.

ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

@kevinpapst
Copy link
Collaborator

Just as quick note: PHP has the date.timezone setting, which can interfere with the TZ as well.

And there is an open PR for Kimai itself regarding timezones.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants