Auto-updater minifix

This commit is contained in:
RipleyTom 2020-02-26 19:18:55 +01:00 committed by Ivan
parent 5094ab8283
commit abfa303e07
2 changed files with 1 additions and 2 deletions

View file

@ -217,7 +217,7 @@ bool update_manager::handle_json(const QByteArray& data, bool automatic)
auto time_from_str = [](const std::string& str, const std::string& format, tm* tm) -> bool
{
std::istringstream input(str);
input.imbue(std::locale(setlocale(LC_ALL, nullptr)));
input.imbue(std::locale(setlocale(LC_ALL, "C")));
input >> std::get_time(tm, format.c_str());
if (input.fail())
return false;