switch time to 12-hr format