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

Recommend that instead of passing a QTime directly from C++ to QML, that it is passed as a QDateTime instead so that the timezone can be explicitly set to UTC to avoid any problems with conversion

XMLWordPrintable

    • 0a673d257a02b34450d4bbeb43346d993cf3a109 (qt/qtdeclarative/dev)

      Recommend that instead of passing a QTime directly from C++ to QML, that it is passed as a QDateTime instead so that the timezone can be explicitly set to UTC to avoid any problems with conversion, since if the time zone changes after the first it creates a DateObject then it ends up getting the wrong time being set as a result. Therefore the documentation should propose passing as QDateTime to avoid this (since the conversion would happen internally anyway).

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

            Eddy Edward Welbourne
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes