qt5base-lts/tests/auto/corelib
Andrei Golubev 7605451604 Handle specified time-spec in date-time parsing
When a date-time was parsed from a string, the result was equal (as a
date-time) to the correct value, but had (at least in some cases) the
wrong spec, where it should have had a spec reflecting the zone
specifier parsed.

The time-spec imposed for the benefit of QDateTimeEdit is now moved
from QDateTimeParser to QDateTimeEditPrivate, which takes over
responsibility for imposing it. QDateTimeParser assumes Qt::LocalTime
in member functions (where applicable) and uses the time-spec parsed
from the string when constructing the date-time.

QDateTime::fromString() and QLocale::toDateTime() are updated to
use the full QDateTime returned by QDateTimeParser.

Fixes: QTBUG-83075
Done-With: Edward Welbourne <edward.welbourne@qt.io>
Change-Id: I8b79add2c7fc13a200e1252d48dbfa70b36757bf
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2020-04-22 14:14:30 +03:00
..
animation Try to stabilize flaky test cases of tst_qsequentialanimationgroup 2020-03-12 09:40:43 +01:00
codecs Port from QStringViewLiteral to u"" 2019-07-29 11:17:28 +03:00
global Make tst_QRandomGenerator::qualityReal() test more stable 2020-03-25 22:19:24 +01:00
io tst_QFileInfo: fix running with systems without /etc/passwd 2020-04-09 10:55:25 -03:00
itemmodels QIdentityProxyModel: implement moveRows / moveColumns 2020-01-02 17:48:07 +01:00
kernel Introduce QSocketNotifier::activate(QSocketDescriptor, QSN::Type) 2020-04-16 13:52:11 +02:00
mimetypes Core: Use Qt::SplitBehavior in preference to QString::SplitBehavior 2020-02-28 15:37:11 +01:00
plugin Merge remote-tracking branch 'origin/5.14' into 5.15 2020-03-11 11:27:49 +01:00
serialization QCborValue: fix the move-assignment operator 2020-04-11 12:04:25 +00:00
statemachine std::chrono overload added to QStateMachine::postDelayedEvent() 2020-02-10 15:04:39 +01:00
text Fix deprecation warning in tst_QLocale()'s use of QProcess::start() 2020-04-03 15:13:23 +02:00
thread Add a constructor for QRunnable from anonymous functions 2020-01-31 19:20:43 +01:00
time Handle specified time-spec in date-time parsing 2020-04-22 14:14:30 +03:00
tools tst_QScopeGuard: Fix build by giving template parameters explicitly 2020-04-06 09:27:01 +02:00
corelib.pro Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00