diff --git a/date.h b/date.h index cf1e907..536add0 100644 --- a/date.h +++ b/date.h @@ -39,6 +39,8 @@ #include #include #include +#include +#include namespace date { @@ -4062,7 +4064,7 @@ format(std::basic_string fmt, sys_time tp) { const std::string abbrev("UTC"); CONSTDATA std::chrono::seconds offset{0}; - return detail::format(std::move(fmt), local_time{tp.time_since_epoch()}, + return detail::format(std::locale{}, std::move(fmt), local_time{tp.time_since_epoch()}, &abbrev, &offset); }