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

Date.parse() doesn't work well in v4 engine, with RFC2822 datetime format

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.0 RC1
    • 5.2.0, 5.2.1
    • None
    • Ubuntu desktop 12.04
      Ubuntu desktop 13.10
      Ubuntu Touch 14.04 r250

    Description

      var datestring = "Wed, 18 Sep 2013 07:00:51 -0700"
      console.log("Date.parse: ", Date.parse(datestring))

      or

      var dateObj = new Date("Wed, 18 Sep 2013 07:00:51 -0700")
      console.log("dateObj: ", dateObj)

      1) output: Date.parse: NaN
      2) output: dateObj: Invalid Date

      both code work fine with v8 engine

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            joeychan Joey Chan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes