Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
3.x
-
None
Description
From autotest\qlocale\tst_qlocale.cpp
QCOMPARE(no.dateTimeFormat(QLocale::NarrowFormat), QLatin1String("dd.MM.yy HH.mm"));
QCOMPARE(no.dateTimeFormat(QLocale::ShortFormat), QLatin1String("dd.MM.yy HH.mm"));
QCOMPARE(no.dateTimeFormat(QLocale::LongFormat), QLatin1String("dddd d. MMMM yyyy 'kl'. HH.mm.ss "));
The space in the end of the format string comes from format characters that are not supported by Qt. For example in CLDR some date/time format strings contains "y" or "z" or "zzzz" which are not supported by Qt. We should either extent Qt to support them or to wipe them out of the format string when converting a CDLR format to Qt format.
Attachments
Issue Links
- resulted from
-
QTBUG-7898 "QLocale::toDateTime ( const QString & string, FormatType format = LongFormat ) const" cannot return correct value
-
- Closed
-