From eedce0a7476f8f86ed98bfa18590fc01625e46a7 Mon Sep 17 00:00:00 2001 From: Corentin Schreiber Date: Sat, 25 Nov 2023 15:57:24 +0000 Subject: [PATCH] Fix compilation error with FMT_USE_LOCAL_TIME --- include/fmt/chrono.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }