Fix timestamp computations.