Replaced default spec with equivalent one, which is potentially more optimizable (#2537)

This commit is contained in:
Pavel Novikov 2021-10-08 17:09:54 +03:00 committed by GitHub
parent 1e865b3539
commit 26c1ca4c3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>