diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index ad15be74..7507e32f 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);