diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 997bb2d0..e3ec702d 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -1782,7 +1782,7 @@ struct formatter, template auto format(std::chrono::time_point val, - FormatContext& ctx) -> decltype(ctx.out()) { + FormatContext& ctx) const -> decltype(ctx.out()) { return formatter::format(localtime(val), ctx); }