Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15
-
None
-
bed25fdf6065d7137fa5610e4f214e9a8f8e172b (qt/qtbase/dev) c7f14deb7c9b517edaa8548f387d6eae1663ec7b (qt/qtbase/5.15)
Description
Current date-time handling is rather limited without QT_CONFIG(timezone): it is able to support Qt::LocalTime time-spec only and Qt::UTC/Qt::OffsetFromUTC are not handled correctly together.
More specifically, it happens in cases when date-time format string includes a `t` specifier and the date-time string has corresponding time zone specifier which is a UTC-offset zone identifier e.g. 2001-09-15T09:33:01.001UTC-03:00 is not supported without QTimeZone. Oppositely, if timezone feature is enabled (default), the example above produces expected result.
Attachments
Issue Links
- relates to
-
QTBUG-83687 Teach QDateTime to parse common time-zone offset formats from string formats
- Closed
For Gerrit Dashboard: QTBUG-83844 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
298012,12 | Teach QDateTimeParser some common time-zone offset formats | dev | qt/qtbase | Status: MERGED | +2 | 0 |
301012,6 | Teach QDateTimeParser some common time-zone offset formats | 5.15 | qt/qtbase | Status: MERGED | -1 | 0 |