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.
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.
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
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.