diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 9b2aa74d..4a2c3a3d 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -1777,7 +1777,7 @@ struct chrono_formatter { format_to(std::back_inserter(buf), runtime("{:.{}f}"), std::fmod(val * static_cast(Period::num) / static_cast(Period::den), - 60), + static_cast(60)), num_fractional_digits); if (negative) *out++ = '-'; if (buf.size() < 2 || buf[1] == '.') *out++ = '0';