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

    • 1
    • c464f67db (dev), 1efc142d2 (6.7), 6b41f5882 (tqtc/lts-6.5)

      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?)

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

            Eddy Edward Welbourne
            peppe Giuseppe D'Angelo
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes