diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 10aa7e55..3d2007bb 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -2144,8 +2144,8 @@ struct formatter, Char> if (period::num != 1 || period::den != 1 || std::is_floating_point::value) { const auto epoch = val.time_since_epoch(); - const auto subsecs = fmt_duration_cast( - epoch - fmt_duration_cast(epoch)); + const auto subsecs = detail::fmt_duration_cast( + epoch - detail::fmt_duration_cast(epoch)); return formatter::do_format(localtime(val), ctx, &subsecs); }