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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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

    Description

      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.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-83687
          # Subject Branch Project Status CR V

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes