This worked for me:
- Edited /etc/default/openhab and removed -Duser.timezone=Europe/Berlin from the EXTRA_JAVA_OPTS parameter
- Created /etc/openhab/linux.parameters and added just EXTRA_JAVA_OPTS=“-Duser.timezone=America/New_York” in it
- sudo systemctl edit openhab , then I added EnvironmentFile=-/etc/openhab/linux.parameters to the [Service] section
- sudo systemctl stop openhab
- sudo systemctl start openhab
(without the last two steps the system didn’t get the correct timezone, meaning the systemctl edit didn’t restart OpenHAB)
Thank you for the pointers. Please inform in the future if any of this needs to be removed with future improvements.
Forgot to mention, just upgraded from 3.4.5 to 4.3.3, and noticed this issue.