-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect hours displayed when client is in another timezone from the server #464
Comments
Hi @bpinney. The hourly weather card uses a standard set of functions to format dates and times. It uses your user locale and timezone settings from HA. If you go to your User settings page (click your user name in the HA sidebar), you can configure those options and then the Hourly Weather card should pick those up. |
Thank you for your quick response @decompil3d. Yes, I had selected "Use server time zone (America/New York)" in the user settings page, which is why I was surprised to find the hours displayed matched the client time zone. |
Thanks for the additional information. I'll try to reproduce this when I have a moment. |
@decompil3d any movement on this? |
P.S. i checked my forecast provider data, and the datetime field there is returned in UTC (e.g. "2024-06-12T16:00:00+00:00"), not respecting time zone. Could it be that you're taking time for label directly from there, without conversion? But i'm stumped with the fact that i have it displayed correctly on my PC Chrome, however incorrect on Android clock device... That one has pretty outdated web view, by the way. |
Checklist:
Release with the issue:
v4.13.0
Last working release (if known):
Browser and Operating System:
Home Assistant Companion App 2023.7.5-full, Android 13
Firefox 115.0.3 (64-bit), MacOS 13.4.1
Description of problem:
It seems the server time zone offset is is not being applied to the hours displayed. As seen in this attached screenshot with server time zone set to -5:00 (13:53) and the client time zone set to +10:00 (7:53), the hourly weather card is displaying the weather for 8:00 rather than 14:00.
Javascript errors shown in the web inspector (if applicable):
Additional information:
Edit: This unexpected behavior occurs when using the "Use server time zone" option in the User settings page while the client is in a different time zone from the server.
The text was updated successfully, but these errors were encountered: