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

Add a static QTimeZone method to refresh system zone information

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.6, 5.7, 5.8
    • Core: Date/Time
    • None
    • 13
    • Foundation PM Prioritized

    Description

      Our V4 engine (in qtdeclarative) implements a Date.timeZoneUpdated() method.
      We can call tzset(), where available, to get usual system calls to use an updated time zone; but QTimeZone::systemTimeZone() defers to a back-end that may be cacheing its knowledge of the system zone; so we need some mechanism in QTimeZone, likely a static method, for asking that back-end to consult afresh whatever sources it uses to discover the system zone.

      For example, for the ICU back-end, we would need to call its TimeZone::adoptDefault(NULL) to trigger a reset of its knowledge of the system time zone.

      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
              Eddy Edward Welbourne
              Vladimir Minenko Vladimir Minenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes