qt5base-lts/tests/auto/corelib
Edward Welbourne 3cf84287e7 Prepare TextDate to use UTC-offset rather than GMT-offset zone suffixes
There are GMT-offset zones whose convention for the sign of the offset
is the reverse of what we are (still) using, which is the usual
convention for UTC-offset zone: for example, the Olson Database's
Etc/GMT+3 has offset -3 hours in the UTC-based system we use, so we
give it suffix GMT-0300. The UTC-based suffix is also what we use as
the abbreviation for OffsetFromUTC() in toString().

For now this only adds support for parsing a planned future form: the
old form using GMT is retained, to give client code some chance to
prepare for a backwards-compatible transition. Although the GMT prefix
is matched case-insensitively, only match UTC if fully upper-case;
there is no meaningful precedent for case-insensitive usage here.

[ChangeLog][QtCore][QDateTime] The Qt::TextDate format now recognizes
UTC-based offset suffixes in addition to suffixes based on the
deprecated alias GMT. This prepares for toString() to use such
UTC-based suffixes for time-zones (fromString() cannot parse the
present abbreviation suffix). A future release of Qt shall use
UTC-based suffixes in place of the present GMT-based suffixes (which
conflict with GMT-based IANA zone names) for Qt::LocalTime and
Qt::OffsetFromUTC time-specs. Client code is encouraged to use and
recognize UTC-based zone suffixes in preparation for that transition,
unless compatibility with versions before 6.2 is required.

Change-Id: I5a42a488f1232a30f4b427b7954759283423b9b3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-02-15 13:44:06 +01:00
..
animation Port QPauseAnimation to the new property system 2021-01-26 21:47:47 +01:00
global Remove the QT_CMAKE_BUILD preprocessor define 2021-01-22 19:22:15 +01:00
io Move QEMU emulation detector to QTest 2021-02-13 10:02:51 +02:00
itemmodels Make sure QMimeData is fully declared 2021-01-11 16:57:41 +01:00
kernel Fix registerNativeMethods for good 2021-02-11 14:03:50 +00:00
mimetypes Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
plugin Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
serialization Move QEMU emulation detector to QTest 2021-02-13 10:02:51 +02:00
text macOS: Be honest about the system locale 2021-02-11 15:01:45 +01:00
thread Move QEMU emulation detector to QTest 2021-02-13 10:02:51 +02:00
time Prepare TextDate to use UTC-offset rather than GMT-offset zone suffixes 2021-02-15 13:44:06 +01:00
tools Disable warnings from using deprecated QScopedPointer::take 2021-02-13 06:44:52 +01:00
CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00