From 335404d0fcd6e91aaa2ad3124daa2e17123d3edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A9=D0=B0=D0=BF=D0=BE=D0=B2?= Date: Fri, 11 Jun 2021 00:29:17 +0500 Subject: [PATCH] Fix set locale error in chrono formatter --- include/fmt/chrono.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 5e03149d..34afced3 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -291,6 +291,7 @@ inline null<> gmtime_s(...) { return null<>(); } inline auto do_write(const std::tm& time, const std::locale& loc, char format, char modifier) -> std::string { auto&& os = std::ostringstream(); + os.imbue(loc); using iterator = std::ostreambuf_iterator; const auto& facet = std::use_facet>(loc); auto end = facet.put(os, os, ' ', &time, format, modifier);