Fix wraparound hour comparisons.