Fix of sign in time offset computation.