qt6-bb10/tests/auto/corelib/time
Edward Welbourne 58fd829cdf Use localized time-zone abbreviations or offset
The actual formatting of date-time strings is handled by the calendar
backend, but the code's in qlocale.cpp as it uses some of its tools.
When feature timezone is unavailable, we're stuck (as before) with
using QDateTime::timeZoneAbbreviation(), but when it's available we
can use QTimeZone::displayName() to get the localized form of the
abbreviation and offset string.

Make matching changes in QDTP so that it recognizes these localized
abbreviations. We now have another candidate for what local time might
be called, to add to those that must be checked.

This naturally implied some changes to tests. It turns out ICU
believes en_US uses GMT+1/GMT+2 for CET/CEST. Replace some MS
QEXPECT_FAIL()s by including the non-abbreviations we do in fact use
on MS in the lists of "abbreviations" to accept.

[ChangeLog][QtCore][QLocale] When a datetime format includes the
timezone (or offset), the appropriately localised form is (to the
extent the timezone backend in use supports this) used where,
previously, a haphazard choice of system and C locale was used. This
applies to both serialization and parsing.

Task-number: QTBUG-115158
Change-Id: I04f9c1055c3b9008320bb8b758490287fd8be5cd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-10-27 10:52:48 +02:00
..
qcalendar CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qdate QDateTime: disambiguate times in a zone transition 2023-10-19 14:45:56 +02:00
qdatetime Clarify the behavior of QDateTime around 24-hour transitions 2023-10-19 14:45:56 +02:00
qdatetimeparser Use localized time-zone abbreviations or offset 2023-10-27 10:52:48 +02:00
qtime CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qtimezone Warn on failure to construct valid system time zone object 2023-09-15 21:53:36 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00