-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
Comments
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 ;-) |
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. |
Same issue here. Any solution after 5 years? |
@MHBraun I'm sure you're more than welcome to submit a PR. A person working for free, doesn't speed up the work, cause you decide to make focus on "It's a long lasting issue" 👍. |
Do not understand your comment or assumption.
Can you please elaborate?
I have the (similar) issue.
Is there a solution for it?
It is some time down the road, so there might be a fix which is not mentioned here.
Markus
…________________________________
From: Tobias Nordahl Kristensen ***@***.***>
Sent: Wednesday, October 30, 2024 18:09
To: bramkragten/weather-card
Cc: MHBraun; Mention
Subject: Re: [bramkragten/weather-card] Sunrise sunset time in AM/PM format. How to change to 24HR format? (#3)
@MHBraun I'm sure you're more than welcome to submit a PR.
A person working for free, doesn't speed up the work, cause you decide to make focus on "It's a long lasting issue" 👍.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Yes, it's in User Settings. If you have Language set to just "English" you'll get "AM" or "PM" suffixes. If you set it to "English (GB)" you'll get 24 hour time displayed. |
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.
The text was updated successfully, but these errors were encountered: