Base: Switch from toTimeSpec to toTimeZone for Qt 6.9 compatibility
This commit is contained in:
committed by
Kacper Donat
parent
b3bc81603d
commit
297f9ee5ba
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user