Running 48.0 on docker on my synology, the times in the HA log are an hour behind those displayed on the front end. I have set the correct timezone in config. What could be wrong?
I also see that some of my sensors have an hour time offset against them:
request_time: 2017-07-11T00:36:14+01:00
Whilst others do not:
next_dawn: 2017-07-12T03:13:33+00:00
Not sure what’s wrong, I’m also running HA v0.48.0 in docker and use following argument when starting the container (docker run):
-v /etc/localtime:/etc/localtime:ro
I also made sure my host machine have correct time set with the following command:
date
sudo hwclock
Both return my current local time:
Di 11. Jul 10:41:29 CEST 2017
Di 11 Jul 2017 10:41:40 CEST -0.791836 seconds
Also in my configuration.yaml I’ve set the time_zone:
homeassistant:
time_zone: Europe/Berlin
Finally you can also login your container and check which date is configured in your docker:
docker exec -it $YOU_CONTAINER_NAME bash
date
Regarding the different time offset used, I also see that in my log (next_rising=2017-07-12T03:08:38+00:00 Altitude @ 2017-07-11T10:47:31.597978+02:00), but it never caused any problem.
Thanks, yes host times are correct (Tue Jul 11 10:15:37 WEST 2017
) but docker container is out at Tue Jul 11 09:18:53 UTC 2017
. Perhaps the docs need updating since they dont cover setting the timezone (although this is in the Linux and MacOS sections) and presume timezone can be set as an environment variable?
Also the following launches HASS but it is not using my config file, any ideas?
docker run -d --name="home-assistant" -v /var/services/homes/robmarkcole/HASS-config/configuration.yaml -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant