summaryrefslogtreecommitdiff
path: root/louloulibs/utils
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-02-01 18:37:51 +0100
committerlouiz’ <louiz@louiz.org>2017-02-01 18:37:51 +0100
commit479b7189935baa4ca9c9d2a5525bdb1fbd8b9fef (patch)
tree89927ea3d40dbad1863e3c3a8d712d01085d0ff8 /louloulibs/utils
parent5eb5e9e0afb996a74bb3a5f2c5fb8b66573aec3c (diff)
downloadbiboumi-479b7189935baa4ca9c9d2a5525bdb1fbd8b9fef.tar.gz
biboumi-479b7189935baa4ca9c9d2a5525bdb1fbd8b9fef.tar.bz2
biboumi-479b7189935baa4ca9c9d2a5525bdb1fbd8b9fef.tar.xz
biboumi-479b7189935baa4ca9c9d2a5525bdb1fbd8b9fef.zip
Only use the C.UTF-8 LANG value
Diffstat (limited to 'louloulibs/utils')
-rw-r--r--louloulibs/utils/time.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/louloulibs/utils/time.cpp b/louloulibs/utils/time.cpp
index e3c49ed..d9c4381 100644
--- a/louloulibs/utils/time.cpp
+++ b/louloulibs/utils/time.cpp
@@ -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("en_US.UTF-8"));
+ ss.imbue(std::locale("C.UTF-8"));
std::string timezone;
ss >> std::get_time(&t, format) >> timezone;