For 12-hour format hour, format midnight as 12