Graphs show local time

I’m in a different time zone right now. When i checked if all runs well all times in graphs are shown with my local time on the x axis, and not with the system’s time which makes more sense.

Now it shows that my irrigation turned on a 3pm but of course it is set to start at 5am.

How would i solve that?

I don’t believe it’s possible. A change to HA would need to occur, specifically with the html/js/css for displaying the information on the History Page.

Actually now that I think about it, it’s definitely not possible. All these calls are made from the browser and it’s local time, which is based on the computer/device you are on.

If you want a quick dirty fix, just change the time zone of your device to match the time zone of where HA is located.

Ok i understand. Still i think this should be corrected in HA as it’s basically just wrong.

It cannot be fixed. Time on computers under the hood work off UTC. The operating system dictates the Time zone. If you are on PC A, and are looking at information on PC B, PC A cannot see the time zone of PC B. You don’t have access from PC A to the operating system on PC B.

I’d say it depends on how graphs are generated. If the raspberry makes them and the mobile phone just shows them all should be fine.
If those are generated on the phone it will be difficult. Maybe there could some correction code be sent to calculate the right time?!

It doesn’t matter who makes them because home assistant datetimes are made and stored in UTC, then the client views them in their TZ. UTC is a universal time zone that all other time zones are based off of. It’s +0. All computers think in this TZ. When a client requests time, the UTC gets passed to the client and the client converts it to the clients time zone.