[Solved] Bad timezone / daylight saving time

Hi,

When randomly browsing my Energy dashboard, I saw that the date displayed is incorrect. There’s a 1 hour difference.

hass.io is hosted on my raspberry and the date/timezone is correct :

When is go in Settings → System → General, the timezone is set to Paris (which is great), but it’s shown as GMT+1 :

France is in GMT+2 right now.

Home Assistant doesn’t handle daylight saving times ? That would be curious.

Why can’t I chose CEST as my timezone ? At least, why GMT (old), as I think UTC (""“new”"") is the legal base in the world ? edit: I did a confusion here, my bad

What did I miss ? Thank you guys

The text under the General section is probably static text - i.e. it will always show GMT+1 regardless of daylight savings. What do you get if you put the following in the Templates tab of Dev Tools?

{{ now() }}

By saying the date is wrong on the Energy dashboard, do you mean that after midnight but before 1am it is still showing the previous day? It’s not daylight savings here until 1st Oct, so I cannot check what my system does. Or are all of the time-based bars one hour from where you’d expect? A screenshot might help.

1 Like

Thank you, the output from Dev Tools seems to confirm that the dropdown list is static :

2023-09-11 14:54:34.865734+02:00

We can see that the timezone is set to +02:00 so that’s fine.

In Energy, today’s dashboard at 14:57 :

At 15:01 :

From what I can deduct here the current bar doesn’t seems to “fill” in real time. The previous 1 hour timeframe bar pops when the whole full hour is done.

Long story short : there’s no problem with my time settings in home assistant.

Two things might lead to confusion :

  • Static text that doesn’t take current DST
  • Energy dashboard doesn’t display the current bar in real time, but wait for it to be complete before displaying it

Do you think these two points should be discussed as future improvements ? (or we don’t care xD)

From what I’ve seen, the list of timezones is always static text in other apps too, so I think that is normal.

And yes, the energy dashboard only shows data for the hour once the hour is complete. The long term statistics are gathered every 5 minutes, and then at the end of the hour they are summarised into hourly.