Docker containers are using UTC timezone

Hi,

I’m wondering if anybody else is experiencing this issue. My server (ElectricEel-24.10.2) is on ET timezone (Louisville), however all my containers show UTC when I check /etc/timezone. I first saw this issue with immich. It was 9pm and my pictures from same day where shown as “yesterday”. All the logs were few hours into the future. I used the container shell and checked current time, it was my local time, however timezone was UTC. I have pictures but can’t seem to embed them here.

Btw I then checked all the other apps and they all show UTC as timezone, not just immich

Set an environment variable called TZ with a value of your timezone.

1 Like

It is set, that is the problem :slightly_smiling_face:

I’ve experimented a bit both with official apps and my own docker compose. It seems that docker is completely ignoring that variable in both cases and sets timezone to UTC. This doesn’t affects most applications (like plex for example) since they rely on local time I guess, but Immich and some others (I think databases) do. Service logs are showing UTC time for example.

Not all containers support TZ.

You can normally mount a timezone instead.

1 Like

Thank you all for your replies.
It turns out Immich has a bug (can’t share the link :frowning: )