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.