diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index e0fd21b1..be8fd1bc 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -47,6 +47,7 @@ inline std::tm localtime(std::time_t time) { dispatcher(std::time_t t) : time_(t) {} bool run() { + tzset(); using namespace fmt::internal; return handle(localtime_r(&time_, &tm_)); }