My local date is different from the UTC date right now (i'm in -0400, so this is true only 4 hours out of the day). If i run the gpgme test suite in my local TZ, i see:
********* Start testing of TestVarious ********* Config: Using QtTest library 5.15.2, Qt 5.15.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 11.2.0), debian unknown PASS : TestVarious::initTestCase() PASS : TestVarious::testDN() PASS : TestVarious::testKeyFromFile() PASS : TestVarious::testDataRewind() PASS : TestVarious::testQuickUid() PASS : TestVarious::testSetExpire() PASS : TestVarious::testSignKeyWithoutExpiration() FAIL! : TestVarious::testSignKeyWithExpiration() Compared values are not the same Actual (expirationDate) : 2106/02/05 Expected (QDate(2106, 2, 6)): 2106/02/06 Loc: [../../../../lang/qt/tests/t-various.cpp(342)] PASS : TestVarious::testVersion() PASS : TestVarious::cleanupTestCase() Totals: 9 passed, 1 failed, 0 skipped, 0 blacklisted, 6337ms
If i run it under TZ=UTC, i see the tests all pass.