Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.9.7, 5.12.2
-
None
-
-
653c1aab185fe59a523f16ffe0cf7b9173c2ff68 (qt/qtbase/5.14)
Description
When spaces appear after the parsed date, the QDateTime::fromString() function parses milliseconds incorrectly:
QDateTime d = QDateTime::fromString("2000-01-02 03:04:05.678 ", Qt::ISODate); QString s = d.toString("yyyy-MM-dd hh:mm:ss.zzz"); // Gives "2000-01-02 03:04:05.068"
Attachments
For Gerrit Dashboard: QTBUG-80445 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
283397,5 | Fix handling of trailing space at the end of an ISO date-time | 5.14 | qt/qtbase | Status: MERGED | +2 | 0 |