Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.0.0
-
None
-
-
38a72af4fd311219779f89b2b78cd56d879f61db (qt/qtbase/dev) 976ee881495ba176da5b0468aaf1162bbdc5c3f5 (qt/qtbase/6.0) 9f74724d842b3390a1c5c04ac8ea9120b3bbdd8b (qt/tqtc-qtbase/tqtc/lts-5.15)
Description
$ ./tst_qdatetime timeZones ********* Start testing of tst_QDateTime ********* Config: Using QtTest library 6.1.0, Qt 6.1.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 10.2.1 20210120 releases/gcc-10.2.0-768-ge1f4be24f4), clear-linux-os 34190 QDEBUG : tst_QDateTime::initTestCase() [4226365.814] (174140 174140)(tst_QDateTime::initTestCase)?[0m: Current local time detected to be behind UTC and therefore not the Central European timezone PASS : tst_QDateTime::initTestCase() FAIL! : tst_QDateTime::timeZones() Compared values are not the same Actual (beforeDst.time()) : 02:59:59.999 Expected (QTime(1, 59, 59, 999)): 01:59:59.999 Loc: [/home/tjmaciei/src/qt/qt6/qtbase/tests/auto/corelib/time/qdatetime/tst_qdatetime.cpp(3722)] PASS : tst_QDateTime::cleanupTestCase() Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 3ms ********* Finished testing of tst_QDateTime *********
// Test MSecs to local // - Test 1 msec before tran = 01:59:59.999 QDateTime beforeDst = QDateTime::fromMSecsSinceEpoch(stdToDstMSecs - 1, cet); QCOMPARE(beforeDst.date(), QDate(2013, 3, 31)); QCOMPARE(beforeDst.time(), QTime(1, 59, 59, 999)); // <=== failure here // - Test at tran = 03:00:00 QDateTime atDst = QDateTime::fromMSecsSinceEpoch(stdToDstMSecs, cet); QCOMPARE(atDst.date(), QDate(2013, 3, 31)); QCOMPARE(atDst.time(), QTime(3, 0));
System's Europe/Oslo attached.
Attachments
Issue Links
- resulted from
-
QTBUG-87663 tst_QDateTime has failing tests on Android
- Closed