hacf-fr / lovelace-meteofrance-weather-card

⛅ Carte Lovelace dédiée à l'intégration Météo-France pour Home Assistant.
MIT License
60 stars 18 forks source link

Honor the hour format preference set by the user in HA #84

Open Mincka opened 3 years ago

Mincka commented 3 years ago

Hello,

My regional settings are in French but the interface of the OS and the browser are in English. Because of this and the usage of toLocaleTimeString the rain forecast is displayed with "AM / PM".

Would it be possible to use the setting that can be set in the user profile in HA as a preference?

If it can help, here's a link of a PR for another integration who made this kind of change: https://github.com/marksie1988/atomic-calendar-revive/pull/504/files

Thank you :)

loiiiic commented 1 year ago

Hello, I am in the same case. Thank you Viproz for your pull requests, I hope it will pushed soon.

Mincka commented 1 year ago

Thank @Viproz for the PR. 😉

BenjixLeGaulois commented 1 week ago

Same issue here, French regional settings but English language. I hope it will be fixed soon.