Correct the date and time