Replaced default spec with equivalent one, which is potentially more optimizable

This commit is contained in:
Pavel Novikov 2021-10-08 15:35:51 +03:00
parent 1e865b3539
commit b45ad083a2
No known key found for this signature in database
GPG Key ID: AEC4E958FA860F27

View File

@ -534,9 +534,7 @@ struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
return formatter<std::tm, Char>::format(time, ctx);
}
static constexpr Char default_specs[] = {'%', 'Y', '-', '%', 'm', '-',
'%', 'd', ' ', '%', 'H', ':',
'%', 'M', ':', '%', 'S'};
static constexpr Char default_specs[] = {'%', 'F', ' ', '%', 'T'};
};
template <typename Char, typename Duration>