Fix time diffs being negative.