qt5base-lts/tests/auto/corelib/time/qdatetime
Andreas Buhr ac7e518a64 [QtCore] Fix QDateTime unit test: time zone of system was used
Test data for QDateTime unit tests was constructed in system's local
time, which made unit test outcome dependent on the time zone of the
system running the tests.
This led to failing unit tests on systems with libc6 version
2.31 or newer. A QDateTime in a timezone, which has daylight saving
time, was created and then used in Hawaii's time zone,which has no
daylight saving time. Newer glibc checks this and returns errors.
This patch changes the behavior to create the test data in a
specified time zone setting.

Task-number: QTBUG-80441
Change-Id: I0330b647fa011be99141dde09001ff2d58bd3a5f
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2020-09-11 19:34:25 +02:00
..
.gitignore Separate out the time, zone, date code from corelib/tools/ 2019-06-06 15:54:32 +02:00
CMakeLists.txt CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qdatetime.pro Use ranged for loops in place of foreach in QTimeZone tests 2020-06-23 16:59:45 +02:00
tst_qdatetime_mac.mm Purge from Q(Date|Time)+ most things marked to go at Qt 6 2020-05-05 15:34:15 +02:00
tst_qdatetime.cpp [QtCore] Fix QDateTime unit test: time zone of system was used 2020-09-11 19:34:25 +02:00