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

QLocale::toDateTime asserts

    XMLWordPrintable

Details

    • Windows
    • 9fee35a2ed (qt/qtbase/dev) 9fee35a2ed (qt/tqtc-qtbase/dev) 9f4ffb4bd2 (qt/qtbase/6.3) 9f4ffb4bd2 (qt/tqtc-qtbase/6.3) d4800e542d (qt/qtbase/6.2) d4800e542d (qt/tqtc-qtbase/6.2) 27e0ca05a0 (qt/tqtc-qtbase/5.15)

    Description

      The above method should just return "invalid" QDateTime when it cannot be "parsed" from provided string/pattern.

      Sample inputs:
      string - "Sun, 29 Mar 2020 02:26:3"
      format - "ddd, d MMM yyyy HH:mm:ss"

      Given string clearly does not fall withing provided format (because of "ss"), but QLocale::toDateTime(...) asserts in debug mode.

      Attachments

        Issue Links

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

          Activity

            People

              Eddy Edward Welbourne
              skunkos Martin Rotter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews