Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.0.0, 5.12
-
None
Description
CLDR's date field symbol table has a significantly richer range of ways to format dates and times than QLocale, Q(Date|Time)+ and friends.
For example, we ignore the 'v' token for the "short generic non-location" form of a time-zone (we don't produce any zone indicator in its place) and pass the 'S' token, for "Fractional Second" (we should map it to our 'z' token; this is an easy fix I've already coded), through unconverted as a literal. We likewise pass through the 'VV' token for "The long time zone ID" (e.g. "Europe/Berlin") as a literal, which is a particular pity as it's the form we'd actually be able to parse robustly (there is no guarantee that the one time-zone specifier we do support - the "short specific non-location" from, e.g. CET - is a unique identifier; several zones might abbreviate identically). We also mishandle 'E'-based tokens (inter alia, up to three should map to our 'ddd' format, but we only recognise 'EEE' for this; this I can fix cheaply).
Relevant Qt source:
- the mapping from CLDR's formats to Qt's is performed by convertFormat() in qtbase/util/local_database/localexml.py
- parsing of our format is done by QDateTimeParser::parseFormat() and QLocalePrivate::dateTimeToString()
Significant reworking of QLocale, Q(Date|Time)+ and friends shall be required to support this; in many cases we don't have suitable data (for example, the omission of 'v' is surely because we don't have cross-platform consistent information about time-zone names).
Attachments
Issue Links
- depends on
-
QTBUG-81056 Add QDateTimeFormat based on CLDR's format strings
- Open
-
QTBUG-77948 Rewrite QDateTimeParser
- In Progress
- relates to
-
QTBUG-122633 QLocale doesn't align with C library functions to let us use them for system locale data
- Open
-
QTBUG-112909 Support all CLDR's various ways of naming time-zones
- Open
-
QTBUG-105985 Add format string option for week number
- Reported
-
QTBUG-79902 QLocale: make fuller and more faithful use of the CLDR data
- Open
-
QTBUG-122216 Qt Linux does not respect locale
- Reported
-
QTBUG-35139 Finnish long date format is incorrect
- Closed