Commit bf5e58f0 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Google Calendar: fix number conversion in sync time delta check

parent 676fad6a
......@@ -134,7 +134,7 @@ void CalendarResource::retrieveItems(const Akonadi::Collection &collection)
// max. last 25 days, otherwise we get an error.
int lastSyncDelta = -1;
if (!collection.remoteRevision().isEmpty()) {
lastSyncDelta = QDateTime::currentDateTimeUtc().toTime_t() - collection.remoteRevision().toUInt();
lastSyncDelta = QDateTime::currentDateTimeUtc().toTime_t() - collection.remoteRevision().toULongLong();
}
KGAPI2::Job *job = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment