[libc++][format] Fixes times before epoch.
The number of days should be rounded down, for both positive and negative times since epoch. The original code truncated, which is correct for positive values, but wrong for negative values. Depends on D138826 Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D154865
Loading
Please sign in to comment