fixed a small bug in converting the minute of day into a string.
Whenever the minute of day was >= 0 but less than 60, it would
convert the hour to 0 instead of 12. the time format is in 12
hour format.