Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Duplicate
-
Affects Version/s: 6.0.0 Beta2
-
Fix Version/s: None
-
Component/s: Core: Date/Time
-
Labels:None
-
Platform/s:
Description
QDate::fromString("05.12.20", QLocale::system().dateFormat(QLocale::ShortFormat));
returns 05.12.1920 even we're in the 21st century for some years now. Although this can't be changed for Qt5 I would assume it's fine for Qt6. The affecting code is in qdatetimeparser.cpp / QDateTimeParser::fromString():
QDateTime val(QDate(1900, 1, 1).startOfDay());
Attachments
Issue Links
- duplicates
-
QTBUG-82886 Qt::DefaultLocaleShortDate / QLocale::ShortFormat date parsing doesn't deal with 4-digit years
-
- Open
-
-
QTBUG-74323 QDate::from string gives wrong year
-
- Closed
-