docker-xeoma icon indicating copy to clipboard operation
docker-xeoma copied to clipboard

TZ variable to set correct timezone

Open skylord123 opened this issue 6 years ago • 5 comments

Currently the container is set to timezone UTC which causes all of my timestamps to be wrong.

I fixed this by using the console of the container and running apt install tzdata and selecting my timezone using the prompts. It would be nice if there was just a TZ env variable that could be set instead (I have seen other containers take this approach).

skylord123 avatar Feb 21 '19 03:02 skylord123

Going to agree on this one. Oddly enough, it looks like it is trying to do some sort of Time Zone setting, but it isn't working right. (My time zone in the container shows as 'America', using UST time).

CraziFuzzy avatar Dec 04 '19 06:12 CraziFuzzy

So, it appears that the major hiccup causing this is that tzdata is not installed in the container at this time. If it could be added to the dockerfile, I think it would use the TZ env variable by default, which would set the time in the container to be correct, so that file timestamps and log entries are correct.

CraziFuzzy avatar May 10 '20 06:05 CraziFuzzy

So, it appears that the major hiccup causing this is that tzdata is not installed in the container at this time. If it could be added to the dockerfile, I think it would use the TZ env variable by default, which would set the time in the container to be correct, so that file timestamps and log entries are correct.

I wonder if it is possible to just mount the time directory on the host to the client as read-only? It's possible that may not work because tzdata isn't installed though. It may be worth trying though.

skylord123 avatar May 15 '20 23:05 skylord123

I have simply gone into the container's shell and installed tzdata, and it was working - but it's not really a persistant fix if it isn't added into the dockerfile to do so on image build.

CraziFuzzy avatar May 18 '20 05:05 CraziFuzzy

Done - PR #18 also at qlustor/xeoma

neurocis avatar Dec 15 '20 05:12 neurocis