Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-26038 Make Date/Time adhere to ISO 8601
  3. QTBUG-14418

QTime::fromString does not properly support ISO8601

    XMLWordPrintable

Details

    • Ib742fe80686aff3c3770b995678cf838fb4e3bb4

    Description

      The doc states that Qt::ISODate expects a date in that format: "ISO 8601 extended format: either YYYY-MM-DD for dates or YYYY-MM-DDTHH:MM:SS, YYYY-MM-DDTHH:MM:SSTZD (e.g., 1997-07-16T19:20:30+01:00) for combined dates and times".

      However, only a subset of the ISO8601 extended format is supported. For example, that string 23:42 is valid and will parse to 00:00.

      Either the doc or QTime should be fixed (preferable QTime )

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            abustany Adrien Bustany
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes