Clean up time format.