qt6-bb10/src/corelib/time
Edward Welbourne 29af4b1833 Sort out an anomaly in tst_QDateTime::springForward()
It noted that an unspecified function claimed the offset it was
checking should be +1, while testing it against that or -1. The
function turns out to be QDateTime::addDays(), whose doc did indeed,
misleadingly, say that it lands after a gap it would have hit. It in
fact overshoots the gap in the direction of its change. Amend its
docs, likewise those of addMonths() and addYears(), to reflect the
true behavior.

Amend the test to look at the direction of the step its taking and
anticipate that the adjustment will be in the same direction; then
compare the actual adjustment to that.

Change-Id: I9ab918fac0ab2195ef014983f37fccc435bf0498
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-10-11 22:06:20 +02:00
..
qcalendar.cpp QtCore/QCalendarRegistry: Move helper CaseInsensitiveAnyStringViewLessThan out of anonymous namespace 2023-01-31 10:46:49 +01:00
qcalendar.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcalendarbackend_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcalendarmath_p.h Improve readability of calendrical calculations 2023-01-31 17:35:13 +01:00
qdatetime.cpp Sort out an anomaly in tst_QDateTime::springForward() 2023-10-11 22:06:20 +02:00
qdatetime.h QDateTime: de-duplicate some code 2023-10-07 17:59:17 +03:00
qdatetime_p.h QDate: use more constexpr vars instead of plain numbers 2023-04-22 20:04:30 +02:00
qdatetimeparser.cpp corelib/time/: clean out assorted over-namespacing 2023-08-09 21:43:40 +02:00
qdatetimeparser_p.h Move access to tzname[] to under the env.var access log 2023-02-20 18:30:44 +01:00
qgregoriancalendar.cpp Refactor QGregorianCalendar::julianFromParts to return std::optional 2023-05-04 14:06:07 +02:00
qgregoriancalendar_p.h Move month names from QGregorianCalendar to QRomanCalendar 2023-07-21 18:22:00 +02:00
qhijricalendar.cpp QtCore: Disambiguate QCalendar locale data 2023-01-31 18:42:15 +01:00
qhijricalendar_data_p.h Change enumdata.py names so comments read more naturally 2023-08-09 17:53:45 +02:00
qhijricalendar_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qislamiccivilcalendar.cpp Improve readability of calendrical calculations 2023-01-31 17:35:13 +01:00
qislamiccivilcalendar_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qjalalicalendar.cpp Notes on the Solar Hijri calendar 2023-04-19 16:40:36 +01:00
qjalalicalendar_data_p.h Change enumdata.py names so comments read more naturally 2023-08-09 17:53:45 +02:00
qjalalicalendar_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qjuliancalendar.cpp QtCore: Disambiguate static variables 2023-02-02 21:57:49 +01:00
qjuliancalendar_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qlocaltime.cpp Rework getting normalized dates adjacent to a given one 2023-09-28 14:51:33 +02:00
qlocaltime_p.h Implement in QLocalTime the offset functions V4 Date needs 2022-05-22 14:22:37 +02:00
qmilankoviccalendar.cpp QtCore: Disambiguate static variables 2023-02-02 21:57:49 +01:00
qmilankoviccalendar_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qromancalendar.cpp QtCore: Disambiguate QCalendar locale data 2023-01-31 18:42:15 +01:00
qromancalendar_data_p.h Change enumdata.py names so comments read more naturally 2023-08-09 17:53:45 +02:00
qromancalendar_p.h Move month names from QGregorianCalendar to QRomanCalendar 2023-07-21 18:22:00 +02:00
qtimezone.cpp Make systemTimeZone() and systemTimeZoneId() consistent 2023-10-10 18:27:22 +02:00
qtimezone.h Change QTimeZone's offset range into constants, not an enum 2023-04-28 16:13:25 +02:00
qtimezoneprivate.cpp Remove spurious early return from QTZPrivate::stateAtZoneTime() 2023-08-09 15:53:07 +02:00
qtimezoneprivate_android.cpp JNI: move signature/className template functions into a template class 2023-09-22 07:18:16 +02:00
qtimezoneprivate_data_p.h Wrap CLDR-derived time-zone ID tables to within a 100-column margin 2023-08-07 19:51:09 +02:00
qtimezoneprivate_icu.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtimezoneprivate_mac.mm Refine minor details in Darwin time-zone backend 2023-07-26 13:00:31 +02:00
qtimezoneprivate_p.h Return TZ time-zone backend's tranCache() as a const reference 2023-06-16 21:37:11 +02:00
qtimezoneprivate_tz.cpp Fix warning on invalid time-zone lookup 2023-09-15 21:53:36 +02:00
qtimezoneprivate_win.cpp Replace {add,sub,mul}_overload with q{Add,Sub,Mul}Overload 2023-06-12 13:11:26 +00:00