Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-57298

QWinTimeZonePrivate::ruleToData() uses full zone names as abbreviations

    XMLWordPrintable

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
    • Core: Date/Time
    • 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

        For Gerrit Dashboard: QTBUG-57298
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            Eddy Edward Welbourne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes