Fix for AM/PM with hours

AM/PM does not have 17 hours, obviously