Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83687

Teach QDateTime to parse common time-zone offset formats from string formats

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.15.1
    • 5.15
    • Core: Date/Time
    • None
    • 21
    • bed25fdf6065d7137fa5610e4f214e9a8f8e172b (qt/qtbase/dev) c7f14deb7c9b517edaa8548f387d6eae1663ec7b (qt/qtbase/5.15)
    • Qt6_Foundation_ Sprint 8

      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, parsing fails if such zone specifier is not prefixed with "UTC" keyword.

      For example: 2001-09-15T09:33:01.001-03:00 should be a date-time with Qt::OffsetFromUTC as time-spec. Corresponding 2001-09-15T09:33:01.001UTC-03:00 is parsed correctly.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            agolubev Andrei Golubev
            agolubev Andrei Golubev
            Maurice Kalinowski Maurice Kalinowski
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes