diff --git a/src/Base/Tools.cpp b/src/Base/Tools.cpp index 26a0867c8b..ae8ae8d1b9 100644 --- a/src/Base/Tools.cpp +++ b/src/Base/Tools.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #endif #include "PyExport.h" @@ -244,7 +245,7 @@ std::string Base::Tools::joinList(const std::vector& vec, const std std::string Base::Tools::currentDateTimeString() { return QDateTime::currentDateTime() - .toTimeSpec(Qt::OffsetFromUTC) + .toTimeZone(QTimeZone::systemTimeZone()) .toString(Qt::ISODate) .toStdString(); }