Details
-
Sub-task
-
Resolution: Done
-
P2: Important
-
None
-
I7e73152bba0f5894bcbaa3f4418732b74ce86bc5
Description
QDate::toString( Qt::ISODate ) lacks prefixed 0's on years below 1000. The iso8601 standard dictates that this should be the case.
For instance:
The following date: 1-1-1 (January 1st, 1) (QDate date(1,1,1)
toString returns (for the format Qt::ISODate): 1-01-01
fromString expects (for the format Qt::ISODate): 0001-01-01 and fails to convert the 1-01-01 string to a valid QDate.
Attachments
For Gerrit Dashboard: QTBUG-16476 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
28348,3 | Add leading zeros to years below 1000 in QDate::toString(). | master | qt/qtbase | Status: MERGED | +2 | 0 |