-
Notifications
You must be signed in to change notification settings - Fork 121
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
Hours showing with decimal, minutes empty in time picker #779
Comments
Just noticed, that if I select the before/after sunrise mode, then minutes are showing correctly when setting the offset. Not working when giving exact time. |
Tried also changing locale to english in Chrome, but only the character changed from comma to dot in the hour picker. |
Could you try setting the HA language to English and see if the issue disappears? |
Yes, I did some investogation and the reason was that HA has 00.00 time format in Finnish, but 00:00 in all other nordic countries. I checked the card's javascript, and modified the getTimeParts function which splits on ":" - replaced it with "." and now the picker works! Just testing if scheduling also works as supposed to. Maybe the source could be updated to split time parts also on "."? |
Looks like you did all the work, thanks! |
I have the same error with Danish locale-settings. |
Checklist
Card Version
v3.2.12
Component Version
No response
Bug description
When adding a schedule, the time picker shows minutes as decimals in Hour -section and the minutes stay empty.
When increasing minutes from the up and down arrows, only decimals change in hours -section (and the decimals don't fit in the area if value is longer than two digits).
When googling found only one similar case which was also Finnish user. Maybe localization related?
Steps to reproduce
Not sure how to reproduce, this is how it has been since installation on Finnish setup.
Additional info
No response
The text was updated successfully, but these errors were encountered: