aetaric/checkrr

docker image runs in UTC and ignores TZ variable. Needs tzdata installed

Closed this issue · 1 comments

The docker image needs tzdata installed ("apk add --update tzdata") otherwise it ignores TZ and runs in UTC time.

To demonstrate, open a shell in the docker container. "date" will display UTC time. then run "apk add --update tzdata" and repeat the date command.

See https://serverfault.com/questions/683605/docker-container-time-timezone-will-not-reflect-changes for details.

BTW, I think the relevance of this is related to when it does it's next run. If I set it to run at 00:00 (default), but it's using UTC time, then for me it's 8 hours off. I believe (I haven't tested this) that it would kick off at 4pm (PST-8=UTC) instead of midnight.
But even if that's not the case, it will produce log files with UTC timestamped entries, and possibly any file access/modification times would be off, which makes it a bit confusing.