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

QTimeZone on Windows (w/o ICU) does not recognize some time zones reported by C++20

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P4: Low
    • None
    • 6.4
    • Core: Date/Time
    • None

    Description

      The TZ database reported by MSVC 2019 contains a handful of timezones that QTimeZone does not know how to handle:

      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "Antarctica/Troll"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "CET"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "EET"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "Factory"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "MET"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "SystemV/AST4"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "SystemV/AST4ADT"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "SystemV/CST6"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "SystemV/CST6CDT"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "SystemV/EST5"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "SystemV/EST5EDT"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "SystemV/HST10"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "SystemV/MST7"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "SystemV/MST7MDT"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "SystemV/PST8"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "SystemV/PST8PDT"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "SystemV/YST9"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "SystemV/YST9YDT"
      190: QDEBUG : tst_QTimeZone::stdCompatibility() Zone not found: "WET"
      

      The "version" reported by std::chrono::tzdb is 2021a.27 . The name reveals that it's using ICU. https://github.com/microsoft/STL/blob/main/stl/inc/chrono#L2073

      This isn't really an action item, just something to track this peculiarity, for the moment being.
      (Maybe the only weird occurrence is Troll, that doesn't seem to exist in CLDR data?)

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Eddy Edward Welbourne
              peppe Giuseppe D'Angelo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes