summaryrefslogtreecommitdiff
path: root/core/gpgme/fix-qt-test-t-various-for-i386.patch
diff options
context:
space:
mode:
Diffstat (limited to 'core/gpgme/fix-qt-test-t-various-for-i386.patch')
-rw-r--r--core/gpgme/fix-qt-test-t-various-for-i386.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/gpgme/fix-qt-test-t-various-for-i386.patch b/core/gpgme/fix-qt-test-t-various-for-i386.patch
new file mode 100644
index 00000000..26b64fd5
--- /dev/null
+++ b/core/gpgme/fix-qt-test-t-various-for-i386.patch
@@ -0,0 +1,16 @@
+ lang/qt/tests/t-various.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lang/qt/tests/t-various.cpp b/lang/qt/tests/t-various.cpp
+index 8563b68..059462e 100644
+--- a/lang/qt/tests/t-various.cpp
++++ b/lang/qt/tests/t-various.cpp
+@@ -355,7 +355,7 @@ private Q_SLOTS:
+ target.update();
+ const auto keySignature = target.userID(0).signature(target.userID(0).numSignatures() - 1);
+ QVERIFY(!keySignature.neverExpires());
+- const auto expirationDate = QDateTime::fromSecsSinceEpoch(keySignature.expirationTime()).date();
++ const auto expirationDate = QDateTime::fromTime_t(keySignature.expirationTime()).date();
+ QCOMPARE(expirationDate, QDate(2106, 2, 6)); // expiration date is capped at 2106-02-06
+ }
+