[GH-ISSUE #1331] stack/service logs always on UTC #7824

Closed
opened 2026-04-27 21:51:07 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @baragoon on GitHub (Apr 6, 2026).
Original GitHub issue: https://github.com/moghtech/komodo/issues/1331

Hi,
I have a TZ variable for core container:

[komodo]# docker exec -it core bash

❯ 70876c05a8b3 ❯ 🦎 core container ❯ root ❯ /app
❯ echo $TZ
Europe/Kyiv

❯ 70876c05a8b3 ❯ 🦎 core container ❯ root ❯ /app
❯ date
Mon Apr  6 15:35:55 EEST 2026

but every service or stack logs are always shows UTC time instead of defined TZ.
for example

app  | 2026-04-06T12:30:20.212438382Z ----------------------------------------------------------------------
app  | 2026-04-06T12:30:20.212448887Z ENVIRONMENT BASE
app  | 2026-04-06T12:30:20.212459282Z ----------------------------------------------------------------------
app  | 2026-04-06T12:30:20.212469511Z PUID=1037
app  | 2026-04-06T12:30:20.212479679Z PGID=100
app  | 2026-04-06T12:30:20.212490378Z UMASK=002
app  | 2026-04-06T12:30:20.212500715Z TZ=Europe/Kyiv
app  | 2026-04-06T12:30:20.212511029Z PRIVOXY_ENABLED=false
app  | 2026-04-06T12:30:20.212521225Z UNBOUND_ENABLED=false
app  | 2026-04-06T12:30:20.212531407Z UNBOUND_NAMESERVERS=
app  | 2026-04-06T12:30:20.212565168Z VPN_ENABLED=false
app  | 2026-04-06T12:30:20.212578049Z ----------------------------------------------------------------------
app  | 2026-04-06T12:30:20.212588726Z 
app  | 2026-04-06T12:30:20.215882128Z [2026-04-06 15:30:20] [INF] Executing usermod...
app  | 2026-04-06T12:30:20.695564541Z [2026-04-06 15:30:20] [INF] Executing groupmod...
app  | 2026-04-06T12:30:20.892490039Z [2026-04-06 15:30:20] [INF] Looking for hardware devices...
app  | 2026-04-06T12:30:20.898308567Z [2026-04-06 15:30:20] [INF] Taking ownership of [/config].

last four lines shows that app container TZ is correct, but core timestamps are 3 hours behind and with Z at the end, which means Zulu time.

Originally created by @baragoon on GitHub (Apr 6, 2026). Original GitHub issue: https://github.com/moghtech/komodo/issues/1331 Hi, I have a TZ variable for core container: ``` [komodo]# docker exec -it core bash ❯ 70876c05a8b3 ❯ 🦎 core container ❯ root ❯ /app ❯ echo $TZ Europe/Kyiv ❯ 70876c05a8b3 ❯ 🦎 core container ❯ root ❯ /app ❯ date Mon Apr 6 15:35:55 EEST 2026 ``` but every service or stack logs are always shows UTC time instead of defined TZ. for example ``` app | 2026-04-06T12:30:20.212438382Z ---------------------------------------------------------------------- app | 2026-04-06T12:30:20.212448887Z ENVIRONMENT BASE app | 2026-04-06T12:30:20.212459282Z ---------------------------------------------------------------------- app | 2026-04-06T12:30:20.212469511Z PUID=1037 app | 2026-04-06T12:30:20.212479679Z PGID=100 app | 2026-04-06T12:30:20.212490378Z UMASK=002 app | 2026-04-06T12:30:20.212500715Z TZ=Europe/Kyiv app | 2026-04-06T12:30:20.212511029Z PRIVOXY_ENABLED=false app | 2026-04-06T12:30:20.212521225Z UNBOUND_ENABLED=false app | 2026-04-06T12:30:20.212531407Z UNBOUND_NAMESERVERS= app | 2026-04-06T12:30:20.212565168Z VPN_ENABLED=false app | 2026-04-06T12:30:20.212578049Z ---------------------------------------------------------------------- app | 2026-04-06T12:30:20.212588726Z app | 2026-04-06T12:30:20.215882128Z [2026-04-06 15:30:20] [INF] Executing usermod... app | 2026-04-06T12:30:20.695564541Z [2026-04-06 15:30:20] [INF] Executing groupmod... app | 2026-04-06T12:30:20.892490039Z [2026-04-06 15:30:20] [INF] Looking for hardware devices... app | 2026-04-06T12:30:20.898308567Z [2026-04-06 15:30:20] [INF] Taking ownership of [/config]. ``` last four lines shows that app container TZ is correct, but core timestamps are 3 hours behind and with Z at the end, which means Zulu time.
Author
Owner

@mbecker20 commented on GitHub (Apr 6, 2026):

This is docker engine logs behavior, Komodo just calling docker logs, you could try "local" logging driver for containers, I think it's better anyways https://stackoverflow.com/questions/55466370/how-to-set-timezone-of-docker-logs-t

<!-- gh-comment-id:4194303517 --> @mbecker20 commented on GitHub (Apr 6, 2026): This is docker engine logs behavior, Komodo just calling docker logs, you could try "local" logging driver for containers, I think it's better anyways https://stackoverflow.com/questions/55466370/how-to-set-timezone-of-docker-logs-t
Author
Owner

@baragoon commented on GitHub (Apr 6, 2026):

@mbecker20 thanks, I'll check logging driver for my containers and report results.

<!-- gh-comment-id:4194495858 --> @baragoon commented on GitHub (Apr 6, 2026): @mbecker20 thanks, I'll check logging driver for my containers and report results.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#7824