weather-card icon indicating copy to clipboard operation
weather-card copied to clipboard

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

Open mmatesic01 opened this issue 5 years ago • 12 comments

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.

mmatesic01 avatar Jul 03 '19 12:07 mmatesic01

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

fribse avatar Jul 05 '19 07:07 fribse

Same "issue".

Italian language.

jokerigno avatar Jul 11 '19 14:07 jokerigno

same here

disrupted avatar Aug 12 '19 00:08 disrupted

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

kajhoej avatar Sep 26 '19 14:09 kajhoej

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

Martorias avatar Oct 06 '19 07:10 Martorias

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.

awolkers avatar Oct 18 '19 19:10 awolkers

Same issue here, with AM/PM.

What to do? :-)

exetico avatar Dec 30 '19 11:12 exetico

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)

fohlsso2 avatar Jan 06 '20 20:01 fohlsso2

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.

oz9els avatar Mar 09 '20 23:03 oz9els

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.

RezzZ avatar Jul 04 '24 07:07 RezzZ

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.

awolkers avatar Jul 04 '24 09:07 awolkers

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 image image

RezzZ avatar Jul 04 '24 16:07 RezzZ