Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.6.0, 5.6.1, 5.6.2, 5.6, 5.7.0, 5.7, 5.8
-
None
-
Windows 7, x86, MSVC 2010.
-
ff4f0c327617e7d7593efdf986235296bf0b83d7
Description
The windows implementation of access to time-zone information uses the same text (QWinTimeZonePrivate's m_daylightName or m_standardName) for both the abbreviated zone name (tran.abbreviation, in QWinTimeZonePrivate::ruleToData) and the display name of the zone (QWinTimeZonePrivate::displayName()'s return). This cannot be good.
I cannot see a way to get at zone abbreviations: although [0]'s example values suggest abbreviations, [1] says that
The StandardName and DaylightName members of the resultant TIME_ZONE_INFORMATION structure are localized according to the current user default UI language.
which strongly suggests the names returned are full names. In practice, experiment reveals that we get full names, not abbreviations, although these may be coming from the registry. Either way, we only have one source of names and we're using the names it gives both as full names and as abbreviations, which is not adequate.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-57298 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
177370,7 | Fix handling of time-zones in QDateTime::toString(Qt::TextDate) | dev | qt/qtbase | Status: MERGED | +2 | 0 |