From b45ad083a2298c9d96f250f1db1ff92937af7ac4 Mon Sep 17 00:00:00 2001 From: Pavel Novikov Date: Fri, 8 Oct 2021 15:35:51 +0300 Subject: [PATCH] Replaced default spec with equivalent one, which is potentially more optimizable --- 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 abaebe47af0c..ad82dc41efdb 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