-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
6.2.2, 6.4.2
-
-
13
-
71d10a788 (dev), 02c0539a8 (6.10), 2de847330 (tqtc/lts-6.8), 98e68b996 (dev), 741f4b126 (dev), 58688033a (6.10), 2f9ebfc20 (6.10), b3be826a4 (tqtc/lts-6.8), ce3ea9e97 (tqtc/lts-6.8)
-
Foundation PM Prioritized
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.
- relates to
-
QTBUG-77948 Rewrite QDateTimeParser
-
- In Progress
-
- split to
-
QTBUG-140840 Support parsing time-zones from abbreviations, in so far as we can
-
- Reported
-
| 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 |
| 680864,6 | qdatetime: reject 2 digit years as invalid in rfc2822 format | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 681216,11 | V4 Date: Support more nonstandard date formats | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 |
| 681538,6 | tst_qqmlecmascript: add data test for date parsing | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 681649,2 | qdatetime: reject 2 digit years as invalid in rfc2822 format | 6.10 | qt/qtbase | Status: MERGED | +2 | 0 |
| 682412,2 | qdatetime: reject 2 digit years as invalid in rfc2822 format | tqtc/lts-6.8 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
| 685594,2 | tst_qqmlecmascript: add data test for date parsing | 6.10 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 685597,2 | V4 Date: Support more nonstandard date formats | 6.10 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 685668,2 | tst_qqmlecmascript: add data test for date parsing | tqtc/lts-6.8 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
| 685672,2 | V4 Date: Support more nonstandard date formats | tqtc/lts-6.8 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |