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"