Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.3
-
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
- relates to
-
QTBUG-78706 Inconsistent daylight saving time (DST) behaviour between qtdeclarative and qtcore when printing QTime in qml
- Open