diff --git a/src/gettext.cpp b/src/gettext.cpp index 517213746665..75fe62065f46 100644 --- a/src/gettext.cpp +++ b/src/gettext.cpp @@ -510,7 +510,8 @@ std::string strftime(const std::string& format, const std::tm* time) std::basic_ostringstream dummy; std::lock_guard lock(get_mutex()); dummy.imbue(get_manager().get_locale()); - dummy << std::put_time(time, format.c_str()); + // Revert to use of boost (from 1.14) instead of std::put_time() because the latter does not appear to handle locale properly in Linux + dummy << bl::as::ftime(format) << mktime(const_cast(time)); return dummy.str(); }