qt5base-lts/tests/auto/corelib/time
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
..
qcalendar Clarify handling of unspecified year in two QCalendar methods 2020-01-31 12:26:34 +01:00
qdate Deprecate locale-related DateFormat enum members 2020-01-31 19:20:43 +01:00
qdatetime Handle specified time-spec in date-time parsing 2020-04-22 14:14:30 +03:00
qtime Deprecate locale-related DateFormat enum members 2020-01-31 19:20:43 +01:00
qtimezone Merge remote-tracking branch 'origin/5.14' into 5.15 2019-12-03 06:57:05 +01:00
time.pro Add support for calendars beside Gregorian 2019-08-20 13:41:21 +02:00