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

Details

    • 0a673d257a02b34450d4bbeb43346d993cf3a109 (qt/qtdeclarative/dev)

    Description

      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).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: