From 6ab8616075b076fd270a9fc0234be19a68236dce Mon Sep 17 00:00:00 2001 From: sunmy <7743179+sun_mengyue@user.noreply.gitee.com> Date: Fri, 11 Jun 2021 09:17:28 +0800 Subject: [PATCH] change default_spec to default_specs --- include/fmt/chrono.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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