In time.cpp, use the en_US.UTF-8 locale, instead of en_US.utf-8

(which apparently doesn’t work on freebsd)
This commit is contained in:
louiz’
2016-12-08 02:53:39 +01:00
parent 807ac95e79
commit 7a8b4e37a5
+1 -1
View File
@@ -24,7 +24,7 @@ std::time_t parse_datetime(const std::string& stamp)
std::tm t = {}; std::tm t = {};
#ifdef HAS_GET_TIME #ifdef HAS_GET_TIME
std::istringstream ss(stamp); std::istringstream ss(stamp);
ss.imbue(std::locale("en_US.utf-8")); ss.imbue(std::locale("en_US.UTF-8"));
std::string timezone; std::string timezone;
ss >> std::get_time(&t, format) >> timezone; ss >> std::get_time(&t, format) >> timezone;