From 9e25c2d74f72103ee491e67583f3cd823aaed443 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Tue, 18 Oct 2016 11:52:07 -0400 Subject: [PATCH] Supply missing imbues in format --- date.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/date.h b/date.h index 8b79b07..b2d28f2 100644 --- a/date.h +++ b/date.h @@ -4006,6 +4006,7 @@ format(const std::locale& loc, std::basic_string fmt, { auto offset = duration_cast(*offset_sec); basic_ostringstream os; + os.imbue(loc); if (offset >= minutes{0}) os << '+'; os << make_time(offset); @@ -4042,6 +4043,7 @@ format(const std::locale& loc, std::basic_string fmt, } auto& f = use_facet>(loc); basic_ostringstream os; + os.imbue(loc); auto ld = floor(tp); auto ymd = year_month_day{ld}; auto hms = make_time(floor(tp - ld));