handle edge case for time == 1200 or 1230