Custom:Digital-clock show 24 hr time

I am trying to get the Custom:Digital-clock card to show 24 hr time. I am having trouble reading the 12hr clock.

I have looked at coding examples, i can find 24hr clock but not the code to change the format. HA is in 24hr format.

Below is the simple code.

Any suggections

type: custom:digital-clock
dateFormat:
  weekday: long
  day: 2-digit
  month: short
timeFormat:
  hour: 2-digit
  minute: 2-digit

Try this way. I added the timeZone: to display it works correctly

type: custom:digital-clock
dateFormat:
  weekday: long
  day: 2-digit
  month: long
timeFormat: HH:mm
timeZone: Asia/Baku

The trick is to delete the

      hour: 2-digit
      minute: 2-digit

Thank you

So basically what I just posted :roll_eyes:

Your solution is not correct.

timeFormat: HH:mm:ss is still required. Try another timeZone and delete

timeFormat:

Example of it not working via your Solution

Please provide advice for all scenarios