From e921e7dee58893162ebbf047a2e215a9b2415f01 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Tue, 26 May 2020 11:48:34 -0400 Subject: [PATCH] Add QT version check at journal.cpp:262 --- oscar/SleepLib/journal.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); }