Fix long duration formatting.

Avoids durations like "1 year and -11 months".