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

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

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 6.2
    • Fix Version/s: None
    • Component/s: Core: Date/Time
    • Labels:
      None
    • Environment:

      Any system for which we don't currently have a fully-featured time-zone backend; e.g. emscripten, at least in some contexts.

    • Platform/s:
      All

      Description

      Prompted by a comment from Lorn Potter 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.

        Attachments

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

          Activity

            People

            Assignee:
            Eddy Edward Welbourne
            Reporter:
            Eddy Edward Welbourne
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes