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

Implement a minimal QTimezonePrivate supporting Qt::LocalTime as system zone



    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • 6.2
    • Core: Date/Time
    • None
    • Any system for which we don't currently have a fully-featured time-zone backend; e.g. emscripten, at least in some contexts.

    • All


      Prompted by a comment from lpotter on QTBUG-95314: it should be possible to implement a time-zone backend that consults the same system APIs that QDateTime currently uses for its conversions between local time and UTC. This implements only one time-zone, the system time-zone, and can probably only offer its abbreviation, no full name.
      It could then be used, in conjunction with the existing UTC-offset backend, as fall-back backend on systems that lack a reliable source of timezone information.

      It may be possible to do this in a way that moves the relevant QDteTime code to this new backend, so that QDateTime can access it privately, even when it's not exposed as the implementation of the system time-zone, so as to unify local-time and zone-time into a common code-path in assorted QDateTime methods.


        Issue Links

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



              Eddy Edward Welbourne
              Eddy Edward Welbourne
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              0 Vote for this issue
              1 Start watching this issue



                Gerrit Reviews

                  There are no open Gerrit changes