Commit Graph
2 Commits
Author SHA1 Message Date
dualfroz 3b660a564a Describe this repository 2026-10-23 04:25:24 +02:00
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