Skip to content

Is ENV TZ working correctly ? #394

@jozefrebjak

Description

@jozefrebjak

I would like to set timezone for date inside of container. In my image I used

ENV TZ=Europe/Bratislava

but when I exec inside of container and type date, I get wrong time from default UTC

# cat /etc/timezone
Etc/UTC
# ls -l /etc/localtime
lrwxrwxrwx 1 root root 27 Nov 17 00:00 /etc/localtime -> /usr/share/zoneinfo/Etc/UTC
# echo $TZ
Europe/Bratislava

I need to set correct time because of logs etc.

Thanks

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