Correcting misformatted timestamps