Closed scott-feier closed 8 months ago
Thanks for the post. This is a docker specific config issue. You can check the solution here.
Problem solved. I didn't have the TZ variable set in the compose file. Once I set it to:
TZ=America/New_York
Then the time was recorded correctly.
Note that there are no quotes around the America/New_York
string
By default, the docker container created by the standard Technitium compose file seems to not pick up the local time zone, so the system within the local docker container thinks it's in UTC.
I remedied this by adding the following to the volumes section of the compose file: volumes:
This sets the time and timezone of the container to that of the host (I'm running Debian 12 (Bookworm) 64-bit on a Raspberry Pi).
I then set the Technitium Logging option to Local time, saved the settings, and restarted the container. However, the log continues to show UTC, even though the container now has the correct time in my time zone (America/New_York in my case), and the log claims it's showing the local time. Here's an excerpt of the log showing what happens after I change the Logging option to Local: