wassy92x / lovelace-digital-clock

A custom digital clock card for Home Assistant
MIT License
96 stars 17 forks source link

24 hour time? #38

Closed chuck99z28 closed 8 months ago

chuck99z28 commented 8 months ago

Is there a setting for 24 hour clock. 1600 vice 04:00 PM

wassy92x commented 8 months ago

Yes. Firstly the displayed format is dependent on the locale. For example we in Germany (locale de) always dispay the time in 24hours format and for example in England (locale en) the default for a time is the 12h format. To set the locale either set the locale property in the card or set the correct locale in your home assistant profile. Another possibility is to set the format explicitly. In your case the property timeFormat has to be set to HH:mm