mishaaq / sun-card

Lovelace card for sun component - Home Assistant
MIT License
51 stars 10 forks source link

24h clock format does not include leading 0 #29

Open markcocker opened 4 years ago

markcocker commented 4 years ago

Describe the bug When sun-card is configured to show time using Clock format 24h it does not include leading 0.

Screenshot 2020-08-25 at 03 16 08

To Reproduce

  1. Go to Card Configuration
  2. Set Clock format to 24h
Screenshot 2020-08-25 at 03 18 41

Expected behavior Numbers under 10 usually have a zero in front as described in Wikipedia 24-hour clock. For example in the screen show below 6:10 should be 06:10.

Desktop (please complete the following information):