format attendance time to 12 hour