qt6-bb10/src/corelib/time
Edward Welbourne e8c52d0e8c Fix transitionEachZone() failures on Android
In QTimeZonePrivate::dataForLocalTime(), mistrust the Android
backend's hasDaylightTime(), as it has a comment saying it only knows
about future transitions, not past. This caller of it really needs to
query "has ever had a transition", which this doesn't answer. Many
zones that have no plans for future transitions have had transitions
in the past; these were failing the transitionEachZone() test.

In the process, refine the test itself, making sure we catch some
quirk cases that shouldn't arise and making the debug message on
failure more informative (while eliding the zone name, as this is part
of the test name anyway, so added to the output by qDebug() itself).

Fixes: QTBUG-69131
Change-Id: I88a0528182c247acb8b6327b40516178e455bcc0
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-02-24 12:08:57 +01:00
..
qcalendar.cpp Provide calendar backends with a unique ID 2021-02-18 11:21:19 +01:00
qcalendar.h Provide calendar backends with a unique ID 2021-02-18 11:21:19 +01:00
qcalendarbackend_p.h Provide calendar backends with a unique ID 2021-02-18 11:21:19 +01:00
qcalendarmath_p.h
qdatetime.cpp Correct qt_mktime()'s check for last second in 1969 2021-02-18 11:21:37 +01:00
qdatetime.h Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qdatetime_p.h Add a ValidWhenMask to QDateTimePrivate::StatusFlag 2020-09-23 17:17:20 +02:00
qdatetimeparser.cpp Add a shortcut in QDateTimeParser::findTimeZone for UTC 2021-02-11 15:38:17 +01:00
qdatetimeparser_p.h Add unit tests for QDateTimeParser internals 2020-10-30 10:15:29 +01:00
qgregoriancalendar.cpp Provide calendar backends with a unique ID 2021-02-18 11:21:19 +01:00
qgregoriancalendar_p.h Provide calendar backends with a unique ID 2021-02-18 11:21:19 +01:00
qhijricalendar.cpp Use char16_t in favor of ushort for locale data tables 2020-02-17 14:55:42 +01:00
qhijricalendar_data_p.h Update CLDR to v38 2020-11-08 13:01:29 +01:00
qhijricalendar_p.h Use char16_t in favor of ushort for locale data tables 2020-02-17 14:55:42 +01:00
qislamiccivilcalendar.cpp Provide calendar backends with a unique ID 2021-02-18 11:21:19 +01:00
qislamiccivilcalendar_p.h Provide calendar backends with a unique ID 2021-02-18 11:21:19 +01:00
qjalalicalendar.cpp Provide calendar backends with a unique ID 2021-02-18 11:21:19 +01:00
qjalalicalendar_data_p.h Update CLDR to v38 2020-11-08 13:01:29 +01:00
qjalalicalendar_p.h Provide calendar backends with a unique ID 2021-02-18 11:21:19 +01:00
qjuliancalendar.cpp Provide calendar backends with a unique ID 2021-02-18 11:21:19 +01:00
qjuliancalendar_p.h Provide calendar backends with a unique ID 2021-02-18 11:21:19 +01:00
qmilankoviccalendar.cpp Provide calendar backends with a unique ID 2021-02-18 11:21:19 +01:00
qmilankoviccalendar_p.h Provide calendar backends with a unique ID 2021-02-18 11:21:19 +01:00
qromancalendar.cpp Use char16_t in favor of ushort for locale data tables 2020-02-17 14:55:42 +01:00
qromancalendar_data_p.h Update CLDR to v38 2020-11-08 13:01:29 +01:00
qromancalendar_p.h Use char16_t in favor of ushort for locale data tables 2020-02-17 14:55:42 +01:00
qtimezone.cpp Fix some bad uses of QSharedPointerData::operator T* 2020-10-16 09:48:09 +02:00
qtimezone.h Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qtimezoneprivate.cpp Fix transitionEachZone() failures on Android 2021-02-24 12:08:57 +01:00
qtimezoneprivate_android.cpp Drop some over-rides that duplicated the base-class's implementation 2021-02-18 11:20:29 +01:00
qtimezoneprivate_data_p.h Update to CLDR v38.1, adding Yukon Standard Time 2021-01-27 15:00:57 +01:00
qtimezoneprivate_icu.cpp Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00
qtimezoneprivate_mac.mm QMacTimeZonePrivate: use .member rather than [- member] notation 2019-12-03 19:00:22 +01:00
qtimezoneprivate_p.h Drop some over-rides that duplicated the base-class's implementation 2021-02-18 11:20:29 +01:00
qtimezoneprivate_tz.cpp Fix handling of Sunday in POSIX time-zone rules 2021-02-01 16:28:26 +01:00
qtimezoneprivate_win.cpp Don't guess UTC when we can't find a system zone name 2020-09-28 15:48:17 +02:00