Skip to content

Timezone not used #9

Description

@frakman1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions