diff options
author | louiz’ <louiz@louiz.org> | 2017-02-01 20:33:16 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-02-01 20:33:16 +0100 |
commit | 835c650ef5a7297cc8bd0d6e0799186e6a5d2126 (patch) | |
tree | c7214e2a9eccc882ab9221bba37f65bf48dfd611 /louloulibs/utils/time.cpp | |
parent | 479b7189935baa4ca9c9d2a5525bdb1fbd8b9fef (diff) | |
download | biboumi-835c650ef5a7297cc8bd0d6e0799186e6a5d2126.tar.gz biboumi-835c650ef5a7297cc8bd0d6e0799186e6a5d2126.tar.bz2 biboumi-835c650ef5a7297cc8bd0d6e0799186e6a5d2126.tar.xz biboumi-835c650ef5a7297cc8bd0d6e0799186e6a5d2126.zip |
Actually, just use the C locale for the date formats
We don’t need any UTF-8 support here, and it’s more portable
Diffstat (limited to 'louloulibs/utils/time.cpp')
-rw-r--r-- | louloulibs/utils/time.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/louloulibs/utils/time.cpp b/louloulibs/utils/time.cpp index d9c4381..e9f3943 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("C.UTF-8")); + ss.imbue(std::locale("C")); std::string timezone; ss >> std::get_time(&t, format) >> timezone; |