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

QDate::toString( Qt::ISODate) lacks prefixed 0's on years below 1000.

    XMLWordPrintable

Details

    • I7e73152bba0f5894bcbaa3f4418732b74ce86bc5

    Description

      QDate::toString( Qt::ISODate ) lacks prefixed 0's on years below 1000. The iso8601 standard dictates that this should be the case.

      For instance:
      The following date: 1-1-1 (January 1st, 1) (QDate date(1,1,1)
      toString returns (for the format Qt::ISODate): 1-01-01
      fromString expects (for the format Qt::ISODate): 0001-01-01 and fails to convert the 1-01-01 string to a valid QDate.

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            kookoo Loredan Cuc
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes