Skip to content
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

Time format does not follow Home assistant settings #136

Open
martkopecky opened this issue May 11, 2022 · 4 comments
Open

Time format does not follow Home assistant settings #136

martkopecky opened this issue May 11, 2022 · 4 comments

Comments

@martkopecky
Copy link

The time format for sunrise, sunset and hourly forecast uses Home Assistant language to determine the time format to be shown.
Modify the card to follow time format selected in Home Assistant config. (i.e. add proper ability to use English with 24h time format for sunrise, sunset and hourly forecast).

@Hubszo
Copy link

Hubszo commented Feb 11, 2023

Any update on this one?

@dingetje
Copy link

dingetje commented Apr 1, 2024

The AM/PM notation is not common here in Europe, please fix.

@fierske
Copy link

fierske commented Sep 18, 2024

The timezone is not set in the function toLocaleTimeString
You can add it by your self "hard-coded" in the .js file.

toLocaleTimeString( lang, { timeZone: 'Europe/Brussels', hour: "2-digit", minute: "2-digit", }

@RezzZ
Copy link

RezzZ commented Oct 10, 2024

timeZone: 'Europe/Brussels'

do I need to restart HA for this to work? Just added the timezone string on 3 places in the js file (Europe/Amsterdam) but still got AM/PM. Also after hard refreshing the browser.
edit: ahh had to change the hacstag for the dashboard resource file in order to "trigger" my browser to redownload the js file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants