Time Sensor display 12HR AM/PM

Hello;

I am using this time input card: Georgi Gardev’s “Time Picker Card”. The resulting sensor still reads “00:00am” at Midnight. I tried fiddling with the ....format(hour if hour == 12... stuff to add an (if == 00), to no avail. Couldn’t get it to work. Can anyone help?