Base: Switch from toTimeSpec to toTimeZone for Qt 6.9 compatibility

This commit is contained in:
Chris Hennes
2025-07-19 16:58:26 -05:00
committed by Kacper Donat
parent b3bc81603d
commit 297f9ee5ba

View File

@@ -27,6 +27,7 @@
#include <string>
#include <sstream>
#include <QDateTime>
#include <QTimeZone>
#endif
#include "PyExport.h"
@@ -244,7 +245,7 @@ std::string Base::Tools::joinList(const std::vector<std::string>& vec, const std
std::string Base::Tools::currentDateTimeString()
{
return QDateTime::currentDateTime()
.toTimeSpec(Qt::OffsetFromUTC)
.toTimeZone(QTimeZone::systemTimeZone())
.toString(Qt::ISODate)
.toStdString();
}