The whole seconds were truncated toward zero while the fractional part was measured from the floor, so any negative non-integral timestamp was rendered one second late; gmtime was not monotonic across the epoch.