System time and OpenHab time out of sync

Hi,

I just did a full fresh install of OpenHabian running openhab 4.2.1

My system shows the correct localtime through

timedatectl

output:

               Local time: Tue 2024-09-10 19:12:16 CEST
           Universal time: Tue 2024-09-10 17:12:16 UTC
                 RTC time: n/a
                Time zone: Europe/Amsterdam (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

How ever the logfiles show a time running 1 hour behind.

2024-09-10 18:15:10.217 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'Verlichting_TV_Vermogen' received command ON

I created a rule to update the time on an item just to be sure:

test.postUpdate(new DateTimeType())

The item is also 1 hour behind.

Interestingly the regional settings in OpenHab settings tell me the time zone is:

(GMT+1:00) Europe/Amsterdam

Which is 1 hour difference from the timedatectl output.
I’ve searched the forum, but I have no luck so far.

Bart

This seems to be related to a timezone database issue in Java 17

I’ve installed the version from that comment and now it works as expected!

I’ve patched openHABian, could you attempt to reinstall to see if that fixes it ?

1 Like

I appreciate your swift response, but I’m happy that I’ve got my automation back up after a week of issues due to a failing Pi.

I won’t have a lot of time to test it, and I have to be friendly to a slight annoyed better half already since the initial troubles of the home setup failing :wink:

I might have time in a couple of weeks.