Fixed bug with hour ones digit

Accidental carry-over from the 12-hour version fixed.