aetaric / checkrr

Checkrr Scans your library files for corrupt media and replace the files via sonarr and radarr
MIT License
206 stars 10 forks source link

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

Closed douginoz closed 1 year ago

douginoz commented 1 year ago

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.

douginoz commented 1 year ago

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.