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

Sunrise sunset time in AM/PM format. How to change to 24HR format? #3

Open
mmatesic01 opened this issue Jul 3, 2019 · 9 comments
Open

Comments

@mmatesic01
Copy link

Hi,
How can I change for sunrise and sunset time to be in 24-HR format.
Currently I have AM/PM format.
My HA interface is in Slovenian language. Using DarkSky.

@fribse
Copy link

fribse commented Jul 5, 2019

Mine is shown in 24-hr format, not sure if it's fixed, or it is just using the setting in HA?

@jokerigno
Copy link

Same "issue".

Italian language.

@disrupted
Copy link

same here

@kajhoej
Copy link

kajhoej commented Sep 26, 2019

Same issue here. Log book and History in HA are all 24H times. Only this weather card seems to be showing in AM/PM

@Martorias
Copy link

Same here, can't find setting to change it.

@awolkers
Copy link

Same here, also the wind direction is shown in English while the weekdays are shown in Dutch. I set Dutch as my language for HA.

@exetico
Copy link

exetico commented Dec 30, 2019

Same issue here, with AM/PM.

What to do? :-)

@fohlsso2
Copy link

fohlsso2 commented Jan 6, 2020

Not sure it is the fault of this card as I have seen the same issue in more places, but until it is fixed it is possible to locally do a workaround.

In the file weather-card.js the string toLocaleTimeString() are in two places, edit it to contain you selected country code, for me that is toLocaleTimeString('sv-SE'). You need to do the same to the file inside the archive (weather-card.js.gz)

@oz9els
Copy link

oz9els commented Mar 9, 2020

The AM/PM is a Home Assistant "feature" - It has to do with your browser/OS-setting. (try fiddling with it, hopefully it will work) Look at the original weather card - it also has the AM/PM ;-)
Is is on the bug-list/feature request list of Home Assistant.

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

10 participants