Skip to content
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

Timezone not used #9

Open
frakman1 opened this issue Mar 12, 2021 · 1 comment
Open

Timezone not used #9

frakman1 opened this issue Mar 12, 2021 · 1 comment

Comments

@frakman1
Copy link

I'm using this with UNRAID. The docker run command includes the -e TZ="America/New_York" environment variable and yet the container ignores it and thinks it is in UTC timezone.

 # date
Fri Mar 12 21:13:25 UTC 2021

It was only after I installed tzdata using apk add tzdata that it then worked:

# apk add tzdata
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
(1/1) Installing tzdata (2020a-r0)
Executing busybox-1.28.4-r3.trigger
OK: 21 MiB in 31 packages
/usr/share # date
Fri Mar 12 16:15:05 EST 2021

The long-term solution is for the Dockerfile to include the line:

RUN apk add tzdata
@GregYankovoy
Copy link
Owner

Let me get this added to my todo list. Makes perfect sense.

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

No branches or pull requests

2 participants