I’ve searched and saw a few daylight savings related issues, but I don’t think any of those are the same issue as they related to specific bindings.
I run openHAB in Docker. Version openhab/openhab:2.2.0-amd64-debian.
My issue is that openHAB is one hour off after the most recent daylight savings time. This causes timed events to happen an hour later than they should. When I log into the console on the server and check the date/time, it is correct. For example:
Tue Mar 27 08:07:48 PDT 2018
However, the openHAB log shows times that don’t factor for the hour change (start of a log line):
2018-03-27 07:07:50.172
This is the command used to start openHAB within a service:
ExecStart=/usr/bin/docker run --name %n
–net=host
–tty
-m 1024M
-e OPENHAB_HTTP_PORT=‘8282’
-e OPENHAB_HTTPS_PORT=‘8444’
-v /etc/localtime:/etc/localtime:ro
-v /etc/timezone:/etc/timezone:ro
-v /opt/openhab/conf:/openhab/conf
-v /opt/openhab/userdata:/openhab/userdata
-v /opt/openhab/addons:/openhab/addons
-v /opt/openhab/.java:/openhab/.java
–device=/dev/USBinsteon
–device=/dev/ttyACM0
openhab/openhab:2.2.0-amd64-debian
I have verified that the timezone is correct. I am in Oregon.
$ ls -l /etc/localtime /etc/timezone
lrwxrwxrwx 1 root root 39 Nov 7 05:06 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles
lrwxrwxrwx 1 root root 39 Mar 16 06:28 /etc/timezone -> /usr/share/zoneinfo/America/Los_Angeles
The docker container doesn’t seem to be respecting the timezone or localtime. I’ve also seen in paperUI that Configuration->System->Regional Settings has a “Time Zone” option. I change that and save and it shows in the log, but it doesn’t seem to change what time openHAB thinks it is, even if I restart the service.
2018-03-27 07:14:44.752 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to en_US, Location set to null, Time zone set to America/Los_Angeles
Has anybody else run into this? What can I do to fix it?
- Platform information:
- Hardware: Intel Core 2 Duo
- OS: Fedora 25 with Docker
- openHAB version: openhab/openhab:2.2.0-amd64-debian