qt5base-lts/tests/auto/corelib/time/qdatetime
Andreas Buhr 91140eb726 Adapt QDate::fromString() to accept negative year numbers
The documentation states that QDate::fromString() accepts negative
year numbers, but it did not. This patch adds support for negative
year numbers to QDate::fromString() and corresponding unit tests.
Furthermore, tests are added for positive signs (+) in date strings.

Fixes: QTBUG-84334
Task-number: QTBUG-84349
Change-Id: I575291e7b8317055d4bb530011d7b10c9cd37ae1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2020-10-30 17:19:27 +01:00
..
.gitignore Separate out the time, zone, date code from corelib/tools/ 2019-06-06 15:54:32 +02:00
CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qdatetime.pro Use ranged for loops in place of foreach in QTimeZone tests 2020-06-23 16:59:45 +02:00
tst_qdatetime_mac.mm Purge from Q(Date|Time)+ most things marked to go at Qt 6 2020-05-05 15:34:15 +02:00
tst_qdatetime.cpp Adapt QDate::fromString() to accept negative year numbers 2020-10-30 17:19:27 +01:00