diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 91f6151c..6228204c 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -452,7 +452,7 @@ template struct formatter, Char> : formatter { FMT_CONSTEXPR formatter() { - this->specs = {default_spec, 17}; + this->specs = {default_specs, 17}; } template @@ -472,7 +472,7 @@ struct formatter, return formatter::format(time, ctx); } - static constexpr Char default_spec[] = {'%', 'Y', '-', '%', 'm', '-', + static constexpr Char default_specs[] = {'%', 'Y', '-', '%', 'm', '-', '%', 'd', ' ', '%', 'H', ':', '%', 'M', ':', '%', 'S'}; }; @@ -480,7 +480,7 @@ struct formatter, template constexpr Char formatter, - Char>::default_spec[]; + Char>::default_specs[]; template struct formatter { template