diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 11b9999e..924bfaff 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -452,10 +452,10 @@ template struct formatter, Char> : formatter { FMT_CONSTEXPR FMT_INLINE void generate_defalut_spec(char) { - this->specs = "%Y-%m-%d %H:%M:%S"; + this->specs = {"%Y-%m-%d %H:%M:%S", 17}; } FMT_CONSTEXPR FMT_INLINE void generate_defalut_spec(wchar_t) { - this->specs = L"%Y-%m-%d %H:%M:%S"; + this->specs = {L"%Y-%m-%d %H:%M:%S", 17}; } template