25.04.2 apps docker timezone setting via TZ does not work

Hello!

Today I have have updated from 25.04.1 to 25.04.2. I have noticed an issue with my teamspeak server app which seems to be related to the time zone not being set correctly in the docker container. I think this has worked correctly in 25.04.1 since I have never experienced a similar issue on that version.

Facts:

  • BIOS time is set to UTC
  • TrueNAS system timezone is set to “Europe/Vienna”
  • Docker container TZ environment variable is set to “Europe/Vienna”
  • Command “date” in docker container still shows UTC time

Can anyone confirm the behavior? Is there a way to fix this?

Thank you!

Yes, I see a UTC timestamp in the logfiles of apps. I’m on Europe/Berlin.
I didn’t notice it before, it will probably have fit.

Hello,

I’m a newbie with TrueNas… and I installed the mariadb app. All was good until I noticed the timezone was UTC. When I tried to add the TZ variable in ‘Additional Environment Variable’ I got this error on updating : base_v2_1_48.error.RenderError: Environment variable [TZ] is already defined from the application developer.

This was very annoying, so I solved the problem by mounting the directory for the config files of mariadb (so persistent after restarts) on a host path.

I don’t know if you can configure the timezone in a config file for your app.

Rgds,
Digo