OH3 Wrong time in logs

  • Platform information:
    • Hardware: Synology NAS DS 716+
    • Docker-Container: openhab/openhab:latest
    • openHAB version: 3.0.1
  • Issue of the topic:
    In my Log-File the timestamp is always -2 hours…
    Also wenn I use the following code in rules the time is always minus 2 hours:
now.toLocalDateTime().toString()

I have set the regional settings:

I bet you have not set a timezone in the Docker Container. You need to add this in the environmental variables when creating the docker. I do this with adding TZ.

TZ Europe/Berlin

2 Likes

Thank you Jan. That was the solution.
image