Details
-
Sub-task
-
Resolution: Done
-
P2: Important
-
None
-
Ib742fe80686aff3c3770b995678cf838fb4e3bb4
Description
The doc states that Qt::ISODate expects a date in that format: "ISO 8601 extended format: either YYYY-MM-DD for dates or YYYY-MM-DDTHH:MM:SS, YYYY-MM-DDTHH:MM:SSTZD (e.g., 1997-07-16T19:20:30+01:00) for combined dates and times".
However, only a subset of the ISO8601 extended format is supported. For example, that string 23:42 is valid and will parse to 00:00.
Either the doc or QTime should be fixed (preferable QTime )
Attachments
For Gerrit Dashboard: QTBUG-14418 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
28818,2 | Make QDateTime::fromString()/Time::fromString() adhere to ISO 8601. | master | qt/qtbase | Status: MERGED | +2 | 0 |