#Wrong time

1 messages · Page 1 of 1 (latest)

rustic lotus
#

Regarding the following page: https://www.home-assistant.io/blog/2017/10/15/templating-date-time/

now() should return the current time in your time zone, however for me its not doing it that, its off with a hour.

  1. Time zone is correctly set in settings.
  2. No Timezone set in YAML. so assume settings is not being overwritten
  3. Profile/User settings time zone is correct, and shows correct time for 'local' and 'server'
  4. HA CLI gives correct timezone as well (Not sure how to let CLI show the current time)

Core 2024.12.3
Supervisor 2024.11.4
Operating System 14.0

Home Assistant

Using templates for seconds and years in Home Assistant.

south ferry
#

Are you sure you understand the output?
Can you give an example of what now() returns for you?

rustic lotus
#

I'm not using any automations till today, and noticed they don't trigger, untill I change the trigger time +1 hour.
now() returns: 2024-12-14 20:51:25.772269+01:00
While with my set time zone +01:00, it is 19:51

south ferry
#

What is your TZ setting in system/general?