qt6-bb10/tests/auto/corelib/time
Edward Welbourne 5d228beb52 Fix an assertion failure in massageAdjustedDateTime()
The QDateTimeData &d it's passed is a copy that's about to be
modified; before we do so, we haven't detached so its internals have a
ref-count of two, contradicting an assertion in the non-const
Data::operator->(); so just directly access d.d->m_timezone, since we
know that spec == TimeZone implies !isShort().
Added test that triggered the assertion and now doesn't.

Fixes: QTBUG-99668
Pick-to: 6.3 6.2 6.2.3 5.15
Change-Id: I07321ad91be5adce524be18e4ab82eee7110dc6a
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2022-01-13 19:47:22 +01:00
..
qcalendar Revise (recently-added) yearSharingWeekDays() to take a QDate 2021-11-15 20:00:21 +01:00
qdate Check for relevant zones existing when adding data rows 2021-11-26 02:14:52 +01:00
qdatetime Fix an assertion failure in massageAdjustedDateTime() 2022-01-13 19:47:22 +01:00
qdatetimeparser Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtime Add new am/pm format-specifier that preserves locale's case 2021-09-08 20:28:40 +02:00
qtimezone Skip QTimeZone::checkOffset() if there are no valid zones to test 2021-11-26 02:14:52 +01:00
CMakeLists.txt Add unit tests for qdatetimeparser 2020-10-23 20:33:18 +02:00