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

QDateTime::fromString does not work with Qt::RFC2822Date

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.2.4, 6.4.2, 6.5.1
    • Core: Date/Time
    • None

      This code:

      auto dt = QDateTime::fromString("Thu, 15 Nov 2018 04:03:50 GMT", Qt::RFC2822Date);
      Q_ASSERT(dt.isValid()); 

      Works fine under Qt 5.12.12. Getting assertion failure under Qt 6.x.

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

            axelspoerl Axel Spoerl
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes