weather-card
weather-card copied to clipboard
Sunrise sunset time in AM/PM format. How to change to 24HR format?
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.
Mine is shown in 24-hr format, not sure if it's fixed, or it is just using the setting in HA?
Same "issue".
Italian language.
same here
Same issue here. Log book and History in HA are all 24H times. Only this weather card seems to be showing in AM/PM
Same here, can't find setting to change it.
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.
Same issue here, with AM/PM.
What to do? :-)
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)
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.
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.
You sure its a feature? HA shows times without AM/PM in logbook and other places.
It's a user setting in HA. Click on the user icon in the left pane to see all the settings related to formatting of date and time settings.
It's a user setting in HA. Click on the user icon in the left pane to see all the settings related to formatting of date and time settings.
Settings are not honored