Fix missing standard locale

This commit is contained in:
Matthias Gabriel
2016-08-25 08:23:19 +02:00
parent e8f8a1ffac
commit ef8bba9818

2
date.h
View File

@@ -4063,7 +4063,7 @@ format(std::basic_string<CharT, Traits> fmt, sys_time<Duration> tp)
{ {
const std::string abbrev("UTC"); const std::string abbrev("UTC");
CONSTDATA std::chrono::seconds offset{0}; CONSTDATA std::chrono::seconds offset{0};
return detail::format(std::move(fmt), local_time<Duration>{tp.time_since_epoch()}, return detail::format(std::locale{}, std::move(fmt), local_time<Duration>{tp.time_since_epoch()},
&abbrev, &offset); &abbrev, &offset);
} }