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

QDateTime loses time zone information when passed to QML

    XMLWordPrintable

Details

    Description

      The new time zone feature for QDateTime seems not to be integrated well with QML.

      Attached is a screenshot that sums up the issue. As you can see, the C++ debug output correctly shows the time in Helsinki, while the QML code always displays local time.

      If a QDateTime is created with QTimeZone info, that info is lost after the QDateTime is passed on to QML (doesn't matter if its a context property like in this example, as a return value of a method or a model data).

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mzanetti Michael Zanetti
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes