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

JavaScript Date constructor cannot handle RFC 822 format

    XMLWordPrintable

Details

    • 5cfe7d2074306a72909ea20718c1c4bebeb27bad

    Description

      I am displaying an RSS feed from a QtQuick application. The date returned by the XML looks as follows

      Sun, 04 May 2014 09:54:55 -0000
      

      Trying to create a Date object out of this using

      var d = new Date("Sun, 04 May 2014 09:54:55 -0000")
      

      results in Invalid Date.

      Doing the same in eg. Google Chrome's developer console works just fine.

      Attachments

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

        Activity

          People

            tsdgeos Albert Astals Cid
            broulik Kai Uwe Broulik
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes