diff --git a/oscar/SleepLib/journal.cpp b/oscar/SleepLib/journal.cpp index 93e8fb8e..95b6f3e3 100644 --- a/oscar/SleepLib/journal.cpp +++ b/oscar/SleepLib/journal.cpp @@ -259,7 +259,11 @@ void BackupJournal(QString filename) if (journal->settingExists(LastUpdated)) { QDateTime dt = sess->settings[LastUpdated].toDateTime(); +#if QT_VERSION < QT_VERSION_CHECK(5,8,0) + qint64 dtx = dt.toMSecsSinceEpoch()/1000L; +#elif qint64 dtx = dt.toSecsSinceEpoch(); +#endif QString dts = QString::number(dtx); stream.writeAttribute("lastupdated", dts); }