qt5base-lts/tests/auto/corelib
Edward Welbourne 8926eb86c6 Fix formatting of dates before 1601 in MS system locale
The relevant MS system calls (say they) don't support date formatting
for years < 1601 (but apparently do in fact) and the year field of the
data structure is unsigned, so can't support years < 0. As a result,
the windows back-end for QSystemLocale failed for negative years.
So replace year < 1601 with a place-holder and substitute after
formatting.

Added new tests (based loosely on one in qtdeclarative that failed) to
verify that this actually works. These reveal that macOS also fails to
handle negative years; marked as expected failure there pending a fix.

Change-Id: I9b63cefd5f0b77a39cf1238549412de3e26ca1bd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-11-18 18:13:20 +01:00
..
animation Include qproperty.h where needed 2021-11-04 21:45:02 +01:00
global Do not include qloggingcategory.h in public headers 2021-11-16 17:26:04 +00:00
io Workaround MSVC 2022 bug about QString::replace 2021-11-10 14:10:20 +01:00
itemmodels Untangle qsortfilterproxymodel unittests 2021-10-01 18:30:25 +02:00
kernel tst_qvariant: fix -Wclass-memaccess 2021-11-16 06:46:52 +01:00
mimetypes Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin QPluginLoader: fix indentation and comments 2021-11-05 21:13:35 -07:00
serialization Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
text Fix formatting of dates before 1601 in MS system locale 2021-11-18 18:13:20 +01:00
thread QFuture: support cancellation of continuation chain through parent 2021-11-13 18:13:08 +01:00
time Revise (recently-added) yearSharingWeekDays() to take a QDate 2021-11-15 20:00:21 +01:00
tools Fix QMultiHash::operator== crash 2021-11-11 22:44:10 +01:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00