Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
6.2.2, 6.4.2
-
-
13
-
41a5c7b223 (qt/qtdeclarative/dev) 41a5c7b223 (qt/tqtc-qtdeclarative/dev) 7ac3dfc2d1 (qt/qtdeclarative/6.3) 7ac3dfc2d1 (qt/tqtc-qtdeclarative/6.3) 078dcd3bf5 (qt/qtdeclarative/6.2) 078dcd3bf5 (qt/tqtc-qtdeclarative/6.2) 078dcd3bf5 (qt/qtdeclarative/6.2.4)
-
Foundation PM Prioritized
Description
JavaScript engine in Qt 6 can't parse the date 'Sun, 25 Mar 2018 11:10:49 GMT' but works in Qt 5
QJSEngine eng;
qDebug() << eng.evaluate("new Date('Sun, 25 Mar 2018 11:10:49 GMT').getTime()").toUInt();
Qt 5 prints: "1557826216"
Qt 6 prints: "0"
The same behavior appears while using "Date.parse()"
UPDATE: "Tue, 31 Jan 2023 6:27:31 PST" does not work, but "Tue, 31 Jan 2023 06:27:31 PST" is working. Also both options are working fine with node.js so it have to be fixed in Qt also.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-100377 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
393324,4 | V4 Date: Support another nonstandard date format QDateTime has dropped | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
393682,2 | V4 Date: Support another nonstandard date format QDateTime has dropped | 6.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
393683,2 | V4 Date: Support another nonstandard date format QDateTime has dropped | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |