Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.3.4
-
None
Description
QDate parses 2-digit years to belong in the 1900s. This is the case with both the QDate(int y, int m, int d) constructor and the static fromString(const QString &string, const QString &format) function. So "08" will result in a QDate with the year 1908.
QDateTimeEdit, on the other hand, parses 2-digit years to belong to whichever century the QDateTimeEdit was initialized with. By default, the QDateTimeEdit is initialized with the year 2000, so "08" will result in a QDate with the year 2008. If the QDateTimeEdit is initialized with the year 3267, "08" will result in a QDate with the year 3208.
This is inconsistent.