frontend
frontend copied to clipboard
Time selector dropdown on history screen does not respect setting to use server time zone rather than local time zone
Checklist
- [X] I have updated to the latest available Home Assistant version.
- [X] I have cleared the cache of my browser.
- [X] I have tried a different browser to see if it is related to my browser.
Describe the issue you are experiencing
I have my browser set to not provide time zone information to websites I'm visiting, as an anti-fingerprinting measure. As such, Home Assistant thinks that I'm in UTC time instead of the timezone that I'm actually in. I accept this, and to work around it, I set the Time Zone setting to "Use server time zone".
This works fine in most areas, but when I go to the history screen and use the date/time selector, the times listed are in the wrong timezone. The history that gets displayed shows with the correct times, and the dates/times shown in the "Start date" and "End date" boxes are correct. However, the times shown in the drop-down time selectors are not.
Describe the behavior you expected
The selector should select time using the timezone of the server when the time zone setting is set to "Use server time zone"
Steps to reproduce the issue
- Set your system timezone to one that's different than the server time, or set your browser to not provide timezone information to the server.
- Go to the profile settings, and in the "Time Zone" setting, select "User server time zone".
- Go to the history page.
- Select at least one entity to display history for.
- Expand the date/time picker.
- Note that the times displayed in the "Start date" and "End date" boxes do not match the times selected in the drop-down time selection boxes.
What version of Home Assistant Core has the issue?
2023.07.3
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Firefox 115.0.3
Which operating system are you using to run this browser?
Windows 11 22H2
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
The way I'm doing the "resist fingerprinting" by going to about:config and setting "privacy.resistFingerprinting" to "true", but a more granular approach can likely be taken for testing by only setting "privacy.resistFingerprinting.testing.setTZtoUTC" to "true".