Ive been running Opehhab on the same RPi for a number of years but after updating to the most recent version, 4.3.2, the time setting in the console is off by 9 hours. The timezone and date/time at the Linux prompt are both correct. The timezone is correctly set in the Openhab web interface. Something must have been installed when 3.4.2 was installed that set the timezone back to GMT, but for the life of me, I can’t figure it out. I’ve both restarted Openhab and rebooted the machine with no effect and tried everything I could find searching.
There are dozens of posts about this.
You need to set EXTRA_JAVA_OPTS to your timezone:
Crreate this file
/etc/openhab/linux.parameters
and add this to the file (adjust to your local time zone of course):
EXTRA_JAVA_OPTS="-Duser.timezone=Europe/Berlin“
There arre other solutions to add the above line to /etc/default/openhab, but I don‘t recommend this. In case this file gets overwritten your settings are gone.
linux.parameters does not get overwritten.
There may be dozens of other posts and once I knew to search for linux.parameters, I found them, but all the searches I tried failed to find anything useful. Thanks so much for the answer, it’s all back on time, though why the default upgrade set that line to Germany/Munich or something like that in etc/default/openhab is a it baffling.