OH 5 DST / Summertime issue

Hi,

I’m wondering if I’m the only one with this issue. I upgraded to OH5 and now the scheduler doesn’t work anymore. I’m in Germany and would have Timezone GMT+2 now. My Raspi has the correct time, Openhabian-Config has the correct time and logs the same in the console output, but OH itself logs in GMT+1, and in the locale settings OH shows Germany as GMT+1. I event tried to set a city shown with GMT+2, but OH itself just logs always in the same timezone.

This is quite annoying as my schedulers are triggered one hour too late as well.

Does anyone have any idea?

1 Like

There are three places to verify the timezone and make sure it’s consistent.

  1. the OS (on Linux you can cat /etc/timezone)
  2. Java (check what, if anything is defined in /etc/default/openhab)
  3. OH itself (MainUI → Settings → Regional Settings)

If any one of those are out of sync you’ll get inconsistent results.

4 Likes

Hi @rlkoshak ,

thank you very much! Somehow the timezone of Java was set to Europe/London… I’m just wondering why this could not be overwritten by Openhab, changing the timezone there was useless.

Have a great Sunday!

This happened to me as well. Clean install of 5.0.0 openhabian. I also had to edit the /etc/default/openhab and change away from London time zone.

2 Likes

I feel like it is an issue in OpenHabian. If I look at my old installation of OH4, the EXTRA_JAVA_OPTS doesn’t contain any timezone, but in OH5 it does. Looks like once it is set in the Java options, the setting in OH UI is useless

Different parts of OH use the timezones from the different locations for different things. Some parts of OH and bindings will use the setting made in the UI while others will only use the EXTRA_JAVA_OPTS. When EXTRA_JAVA_OPTS isn’t set, it’s going to use the time from the operating system. It’s important to make sure all thee are the same (which usually is the case for most users) and if there is an inconsistency check all three to make sure they are in alignment.

Some investigations have taken place and so far we cannot tell where setting the EXTRA_JAVA_OPTS is being set when it gets set incorrectly. Therefore we don’t know where to stop it from happening.

It’s just a guess - I didn’t have it in OH4 and started from scratch as I had to switch to 64bit in OH5. And as it is set there I just assume it is set in the base installation of OH5 by default to London.

I downloaded the sourcecode of Openhabian now and could find some hints which confirm my assumption

  1. openhabian/build-image/openhabian.conf at 3ada598d96a6ad287b214df09550c8d66f90f261 · openhab/openhabian · GitHub - here Europe/London is set as Timezone
  2. openhabian/functions/openhab.bash at 3ada598d96a6ad287b214df09550c8d66f90f261 · openhab/openhabian · GitHub - here the setting is taken over from openhabian.conf

I can see that this didn’t change since OH4, I don’t know what happened during the installation now. Doesn’t matter too much, we found the issue and could resolve it easily thanks to your hint. Thanks again for that!

Thank you for that brief hint!
While point 2 (Java config in /et/default/openhab) did the trick for me too, my MainUI does not show any “Regional Settings” under Settings though.

kind regards

Chris

It’s a core configuration. If it’s not there something is really wrong with your OH install.

1 Like

You opened my eyes. :zany_face: Thank you once more!

Hi,
had the same …
new setup for oh5 on new pi5 - the same “error”. Regional settings done - time on clock ok but dsl rules time 1 hour delay (should CEST aka +2h, but was only +1h (?).
It was wrong value in /etc/default/openhab (never viewed before ;-)) … was Europe/London not /Berlin.
Thx for the solution

The same issue and solution here with a fresh openhabian install on a Pi4.

So the solution is not yet incorparated in the image the Raspberry Pi Imager uses.

Anyway thanks for the work to make openHAB great again.

same situation here as posted by @thickness. Change in /etc/default/openhab to “Berlin” or delete the whole part from “-Duser…” ?

Either will work, but if you change it it seems more likely to not get changed again later by what ever is updating that file (we still haven’t figured that part out).

The last Entry ist from End of 2023. But the issue still is there. Every Time i update my openhabian i have it again and must chance f

/etc/default/openhab in der Zeile EXTRA_JAVA_OPTS= der Parameter -Duser.timezone=Europe/Berlin

from London to Berlin.

I upgraded to 5.1.0 and in the log I see this entry:

2025-12-25_22:17:36_CET [openHABian] Setting openHAB timezone... 
$ sed -ri s|^(EXTRA_JAVA_OPTS.*?)(interning=true)?"|\1\2 -Duser.timezone=Europe/London"|g /etc/default/openhab 
OK

so it is an installation issue that the timezone is resetted all the time…

For sure but the code that does this just copies the timezone from /etc/timezone or, on the first boot from /boot/openhabian.conf.

Those will have been set to the correct timezone a long time ago. So where is this timezone coming from? :person_shrugging: