From 26c1ca4c3e301be000e1c40780d4a3e926048ee5 Mon Sep 17 00:00:00 2001 From: Pavel Novikov Date: Fri, 8 Oct 2021 17:09:54 +0300 Subject: [PATCH] Replaced default spec with equivalent one, which is potentially more optimizable (#2537) --- include/fmt/chrono.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index abaebe47..ad82dc41 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -534,9 +534,7 @@ struct formatter, return formatter::format(time, ctx); } - static constexpr Char default_specs[] = {'%', 'Y', '-', '%', 'm', '-', - '%', 'd', ' ', '%', 'H', ':', - '%', 'M', ':', '%', 'S'}; + static constexpr Char default_specs[] = {'%', 'F', ' ', '%', 'T'}; }; template