parent
3bdf4e494a
commit
2c42abf909
1 changed files with 2 additions and 1 deletions
|
@ -517,7 +517,8 @@ std::string strftime(const std::string& format, const std::tm* time)
|
|||
std::lock_guard<std::mutex> lock(get_mutex());
|
||||
dummy.imbue(get_manager().get_locale());
|
||||
// See utils/io.hpp for explanation of this check
|
||||
#if HAVE_PUT_TIME
|
||||
#if 0 // HAVE_PUT_TIME is 1 for nearly everything except GCC < 5 however put_time does not adjust for locale in Linux
|
||||
// HAVE_PUT_TIME is still used by io.hpp so change the value here instead of in global.hpp
|
||||
dummy << std::put_time(time, format.c_str());
|
||||
#else
|
||||
dummy << bl::as::ftime(format) << mktime(const_cast<std::tm*>(time));
|
||||
|
|
Loading…
Add table
Reference in a new issue