qt6-bb10/tests/auto/corelib
Edward Welbourne df73672f97 QTimeZone(qint32 offsetSeconds): use IANA ID when one is available
Principle of least surprise: prefer IANA IDs over synthesized ones.
This also aligns what id() returns more nearly with what
availableTimeZoneIds() reports. Amend some tests to match the new
behavior, extend one test to verify id-round-tripping (also for the
IANA zones) and another to verify single-digit offset IDs get
zero-padded.

Document the complications in how id() relates to what is passed to
the constructor. (It was already complicated; the present change just
aligns it better with IANA IDs, where possible.) Mention, in
availableTimeZoneIds(), that (and why) it only includes IANA's offset
IDs. Drive-by: fix a typo in another availableTimeZoneIds() overload's
doc.

[ChangeLog][QtCore][QTimeZone] When created from (only) a UTC offset,
or from (only) a non-IANA UTC-offset ID, a QTimeZone instance now uses
an IANA UTC-offset ID, where one is available with a matching offset.
Previously it used a synthesized UTC±hh[:mm[:ss]] one which would omit
trailing :00 for minutes or seconds, which the IANA ID may well
include.

Task-number: QTBUG-118586
Change-Id: Ifc4976f36361c830c88a8bef0e8b963fe5a2ab43
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-11-03 18:27:14 +01:00
..
animation QSequentialAnimationGroup: extend bindable property unit tests 2023-09-03 18:20:21 +02:00
global is_virtual_base_of: suppress warnings in the test 2023-09-28 09:40:23 +02:00
io tests: skip setPermissions test if running as root 2023-11-03 11:00:11 +02:00
ipc QSharedMemory: fix semaphore creation in legacy mode 2023-11-02 21:14:10 +01:00
itemmodels QItemSelectionModel: don't warn when destroying the model 2023-09-22 01:42:45 +02:00
kernel Extend QTestPrivate property tests - actual implementation [2/2] 2023-11-01 22:05:38 +02:00
mimetypes QMimeType: simplify implementation of filterString 2023-09-13 23:27:44 +02:00
platform Android: add an appless test that recreates QGuiApplication 2023-10-26 20:04:51 +02:00
plugin QTemporaryFile(Name): don't make the path absolute on generation 2023-10-26 11:36:46 -07:00
serialization wasm: Fix test runner for asynchronous tests 2023-10-26 13:43:39 +02:00
text QStringView: add isLower and isUpper 2023-11-02 13:50:42 +03:00
thread wasm: Fix test runner for asynchronous tests 2023-10-26 13:43:39 +02:00
time QTimeZone(qint32 offsetSeconds): use IANA ID when one is available 2023-11-03 18:27:14 +01:00
tools QSP/QWP: introduce owner_before, owner_equal, owner_hash 2023-10-26 19:24:40 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00