Fix gmtime and localtime on negative timestamps with fractional seconds (#3634)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
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.
authored by itchyny · committed by GitHub · parent 57f5976 · Browse files · 2 files+12 added−4 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+12 added−4 removed
- tests:+8 added−0 removed
- other:+4 added−4 removed