Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
4.8.5
-
None
-
Linux
-
I0e481144136c60d4cac61364b9b2c1d2cd1e78fc
Description
The input where we first noticed it was something like:
QString input = "431600101".
This string is accepted and returned as QDateTime("Sat Jan 1 00:00:00 4316"). The character between the "year" (i.e. input[4] is ignored, as well as e.g. input[7]). To be a valid ISO date string those both have to be '-', and the whole string has to be one character longer.
It looks like none of the 3 format strings shown in the documentation of Qt::IsoDate is used as any of them would reject the input string.
Attachments
For Gerrit Dashboard: QTBUG-34141 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
74770,2 | QDate - Fix parsing Qt::ISODate | stable | qt/qtbase | Status: MERGED | +2 | 0 |