qt5base-lts/tests/auto/corelib/time
Edward Welbourne 605ae62944 Correct the range of allowed hours for a POSIX rule's transition
A POSIX rule's transition time is allowed an hour in the range from
-137 to 137; in particular, a negative hour is allowed, and used by
some Greenland zones using Europe's time-of-transition which, as they
are more than two hours west of Greenwich, happens before midnight.

This means the time of transition can't be represented by a QTime(),
so propagate the int that represents it to the code that consumes it;
and treat parsing failure as an error rather than "correcting" it - if
the transition time is given, it must be valid.

Changed tst_QTimeZone::isTimeZoneIdAvailable()'s verification of
validity to report the name of the zone it thought was invalid.
(A later change, validating POSIX rules, caued this to fail for
America/Nuuk without the present fix.)

Change-Id: I5c9127ac34d878554dd0aca1c1c7338c7e0e1c28
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-04-20 21:33:00 +02:00
..
qcalendar Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdate Make QDate's text round-trip test do actual comparisons 2021-02-11 11:46:04 +01:00
qdatetime Extend time_t-based handling all the way to the end of time_t 2021-04-16 10:22:27 +02:00
qdatetimeparser Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtime Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtimezone Correct the range of allowed hours for a POSIX rule's transition 2021-04-20 21:33:00 +02:00
CMakeLists.txt Add unit tests for qdatetimeparser 2020-10-23 20:33:18 +02:00