faspina
(Frank Spina)
1
I moved all my stuff to a docker on Nuc yesterday and have weird problem with templating
{{ as_timestamp(states.calendar.watercal_1.attributes.start_time) | timestamp_custom(’%m/%d %I:%M%p’) }}
used to give the start time of the google calendar in my local time. Like it shows in google. Now its giving me the GMT 6 hours earlier.
Time in my configuration is american/chicago
Do you use Docker Compose? I have this in my “volumes” section which passes the system time through to the container.
- /etc/localtime:/etc/localtime:ro
Also check that your host system is setup on the right time zone.
Assuming you’re using Ubuntu, check by running this:
sudo dpkg-reconfigure
Assuming your Home Assistant configuration has the correct time_zone as well.
faspina
(Frank Spina)
3
I figured it out. Duh. My host computer did not have the timezone set correctly