Actually, just use the C locale for the date formats
We don’t need any UTF-8 support here, and it’s more portable
This commit is contained in:
@@ -24,7 +24,7 @@ std::time_t parse_datetime(const std::string& stamp)
|
||||
std::tm t = {};
|
||||
#ifdef HAS_GET_TIME
|
||||
std::istringstream ss(stamp);
|
||||
ss.imbue(std::locale("C.UTF-8"));
|
||||
ss.imbue(std::locale("C"));
|
||||
|
||||
std::string timezone;
|
||||
ss >> std::get_time(&t, format) >> timezone;
|
||||
|
||||
Reference in New Issue
Block a user