correcting the timestamps