2 Commits
Author SHA1 Message Date
dualfroz a580c0b437 fmt: fix buffer sizes when printing durations
The ISO 8601 buffer for durations was sized for `SignedDuration::MIN`,
but the longest output is a negative duration with 16 digits of hours
and two digit minutes and seconds, e.g.,
`-PT2562047788015214H59M59.999999999S`, which is 36 bytes.

Similarly, the friendly format buffer for `std::time::Duration` didn't
account for the `+` prefix written by `Direction::ForceSign`.

Fixes #654
2026-10-13 09:55:38 -04:00
upstream e14c262673 Upstream BurntSushi/jiff state of the touched files before 070c9a5a6b 2026-10-10 12:30:25 +02:00