OH 4.3.2 using wrong time zone

@AndrewFG would need to try setting his Pi OS time zone to something other than UTC/GMT to make sure it works on non UTC time zone.

It is my operative system. So if you guys don’t mind, I would rather not try it.

Good day.

I had this problem both on RPi 4 and on x86 when using Log Viewer (only in Log Viewer the time was incorrect).

I solved it by adding EXTRA_JAVA_OPTS=“-Duser.timezone=Europe/Kyiv” to /etc/default/openhab.
In OpenHAB itself the time worked correctly.

You could clone the openHABian repo and write some test case that installs+starts openhab and shows the log. Github will do the work and clone cloud VMs on ARM hardware.

Hi,

short question as I am unsure if I understood everything.

I am on a RaspiPi 5 and updated yesterday to 4.3.2.
Now the alarm time reported by my OpenHAB App is off one hour.
The time in the log/frontail is still fine.

I am using the following code:

val long wakeupms = (Pixel8Pro_Christian_AlarmClock.state as DateTimeType).getZonedDateTime(ZoneId.of("Europe/Berlin")).toInstant.toEpochMilli

I checked the EXTRA_JAVA_OPTS and there is no timezone set.
I added the time zone ( -Duser.timezone=Europe/Berlin ) but it did not help.
EDIT: I think it did help as

now.toInstant.toEpochMilli

is now one hour off too and matches the time received from the phone again.

Is there something I can test for you?

Thanks!
Christian