But OH3 logs are still showing wrong times (USA/LA)
root@openHAB:~# ls -l /etc/localtime
lrwxrwxrwx 1 root root 35 May 4 12:36 /etc/localtime -> /usr/share/zoneinfo/Australia/Perth
root@openHAB:~# date
Tue May 4 14:00:19 AWST 2021
root@openHAB:~# service openhab restart
tail $OPENHAB_LOGDIR/openhab.log
2021-05-03 23:02:47.448 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'Australia/Perth'.
2021-05-03 23:02:47.486 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '-32.02732708763323,115.77975690364839'.
2021-05-03 23:02:47.497 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'en_AU'.
As you can see OH3 is seeing the local TZ: Time zone set to 'Australia/Perth'
But the timestamps are not correct in the log file.
Instead … they represent USA/Los Angeles time.
How do I get the correct timestamps in the log file?
BTW … this investigation started when my Rules were firing at the wrong times.
In the webuid you have the possibility to set a timezone ( Settings => Regional Settings ).
If that does not help you also can set a timezone in /etc/default/openhab.
There are examples for the variable to be ( EXTRA_JAVA_OPTS ) in the /etc/default/openhab file.
Can’t remember if I installed Java before or after I set the TZ???
But … again … bit of a pity that on a reboot, (Zulu) JAVA does not take any notice of the system TZ. Seems a JAVA bug to me??? The ‘default’ JAVA TZ should not be USA/LA … but the System TZ.
Thanks for all the help. I would never have got this resolved by myself.