qt6-bb10/tests/auto/corelib
Edward Welbourne ba23507960 Fix handling of time-zone gap in QTimeZonePrivate::dataForLocalTime()
This was handled correctly when the backend supplies transitions
bracketing the time in question, but the fallback code tried to use
the DST offset at the time with larger offset from UTC; this did not
work when the gap was due to a change in standard time. Discovered by
ANS1 parsing of a date-time with two-digit year, for which the
date-time parser tried to use 1921-05-01T00:00 local time when filling
in the fields it had parsed; but, when run in Europe/Helsinki, there
is no such time due to the 20m 11s skipped when joining EET from the
prior local solar mean time.

Correct the calculation to use the actual change in offset from UTC,
as used in the (far better tested) between-transitions branch of the
code, rather than the DST offset after the transition.

Add a test-case based on the ASN.1 certificate date whose parsing
revealed the issue. Although it seems nothing in Coin can reproduce
the issue, the reporter has verified that the test does indeed fail on
the system where the bug was found and the fix does fix it.

Fixes: QTBUG-96861
Pick-to: 6.2
Change-Id: I12b02bad01daca2073d1a356452cd573684aa688
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-10-12 22:52:50 +02:00
..
animation Avoid use after free in tst_qsequentialanimationgroup 2021-06-02 16:45:23 +02:00
global Remove checks for features available in C++17 2021-10-02 17:54:39 +02:00
io Compile private Qt APIs autotests for INTEGRITY 2021-10-05 20:35:47 +03:00
itemmodels Untangle qsortfilterproxymodel unittests 2021-10-01 18:30:25 +02:00
kernel Compile private Qt APIs autotests for INTEGRITY 2021-10-05 20:35:47 +03:00
mimetypes Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin QElfParser: rewrite using elf.h 2021-10-06 12:12:53 -07:00
serialization Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
text Add a basic round-trip test for QStringConverter 2021-10-07 14:22:56 +02:00
thread Optimize QPromise destructor 2021-10-08 17:17:20 +02:00
time Fix handling of time-zone gap in QTimeZonePrivate::dataForLocalTime() 2021-10-12 22:52:50 +02:00
tools QList::iterator: use templates for advancing operators 2021-10-12 08:46:31 -07:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00