From e3a846bb1f3acfcd94039456579847f5017e043d Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 25 Nov 2015 22:16:29 +0100 Subject: [PATCH] SyncJournalTest: Use valid time for the tests. --- test/testsyncjournaldb.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/testsyncjournaldb.h b/test/testsyncjournaldb.h index c869a3201..1ca847091 100644 --- a/test/testsyncjournaldb.h +++ b/test/testsyncjournaldb.h @@ -99,7 +99,7 @@ private slots: record._remotePerm = "744"; record._contentChecksum = "mychecksum"; record._contentChecksumType = "MD5"; - record._modtime = QDateTime::currentDateTime(); + record._modtime = QDateTime::currentDateTimeUtc(); QVERIFY(_db.setFileRecord(record)); SyncJournalFileRecord storedRecord = _db.getFileRecord("foo-checksum"); @@ -119,6 +119,8 @@ private slots: SyncJournalFileRecord record; record._path = "foo-nochecksum"; record._remotePerm = "744"; + record._modtime = QDateTime::currentDateTimeUtc(); + QVERIFY(_db.setFileRecord(record)); SyncJournalFileRecord storedRecord = _db.getFileRecord("foo-nochecksum");