# Timezone bug when using logging\_\_useLocalTime and TZ

**URL:** <https://forum.ghost.org/t/timezone-bug-when-using-logging-uselocaltime-and-tz/59870>\
**Category:** Bugs\
**Created:** [August 24, 2025, 2:01pm UTC](https://forum.ghost.org/t/timezone-bug-when-using-logging-uselocaltime-and-tz/59870 "2025-08-24T14:01:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KulikovSerhii](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kulikovserhii/32/37054_2.png) [@KulikovSerhii](https://forum.ghost.org/u/KulikovSerhii)\
**Post date:** [August 24, 2025, 2:01pm UTC](https://forum.ghost.org/t/timezone-bug-when-using-logging-uselocaltime-and-tz/59870/1 "2025-08-24T14:01:39Z")

</div>

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:

```yaml
- 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!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [November 22, 2025, 2:02pm UTC](https://forum.ghost.org/t/timezone-bug-when-using-logging-uselocaltime-and-tz/59870/2 "2025-11-22T14:02:06Z")

</div>

Closed on November 22, 2025, 2:02pm UTC

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