Timezone bug when using logging__useLocalTime and TZ

Hi Ghost team, I’ve noticed strange behavior with timezones in the latest Ghost version (6.x).

If you set the environment variables in Docker simultaneously:

- logging__useLocalTime=true
- TZ=Europe/Kiev

Then:

  • Log files show the correct local time (Kyiv, UTC+3)
  • Console output shows time three hours ahead of Kyiv

If you remove logging__useLocalTime and keep only TZ=Europe/Kiev, then:

  • Console shows the correct Kyiv time

  • Log files save time in UTC

If you remove both (logging__useLocalTime and TZ), then both console and log files show UTC time.

It would be great to fix this bug so that log and console times match when using the local timezone.

Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.