Description: Support RFC 2822 datetime format
 Currently a date like "Wed, 18 Sep 2013 07:00:51 -0700" cannot be parsed.
 However, this used to work in Qt 5.0.2. This commit adds a check for
 Qt::RFC2822Date format after the ISODate check but before the manually
 defined QStringLiteral formats.
 . 
 Note: upstream believed this bug is fixed in Qt 5.3, but it has been now 
 tested not to be the case with both Debian's Qt 5.3.1 and Ubuntu's Qt 5.3.0
Author: Zoltán Balogh <zoltan@bakter.hu>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1298978
Subject: [PATCH] Support RFC2822Date date format similar to V8.
Origin: upstream
Bug: https://bugreports.qt-project.org/browse/QTBUG-38011
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1298978
Forwarded: https://bugreports.qt-project.org/browse/QTBUG-38011
Last-Update: 2014-07-07

--- qtdeclarative-opensource-src-5.3.0.orig/src/qml/jsruntime/qv4dateobject.cpp
+++ qtdeclarative-opensource-src-5.3.0/src/qml/jsruntime/qv4dateobject.cpp
@@ -488,6 +488,8 @@ static inline double ParseString(const Q
     QDateTime dt = QDateTime::fromString(s, Qt::TextDate);
     if (!dt.isValid())
         dt = QDateTime::fromString(s, Qt::ISODate);
+    if (!dt.isValid())
+        dt = QDateTime::fromString(s, Qt::RFC2822Date);
     if (!dt.isValid()) {
         QStringList formats;
         formats << QStringLiteral("M/d/yyyy")
