diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2023-01-12 10:06:35 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2023-01-17 21:58:32 +0100 |
commit | bda7b2a444562ca41ef54910163b74b034fab81c (patch) | |
tree | 56d4aa7dd9c61d99a217ddc3bad369e326b7618a /src/qmlcompiler/qqmljscompiler.cpp | |
parent | 5bc63de8819448e7342f3cb0ac08af667ccc81e5 (diff) | |
download | qtdeclarative-bda7b2a444562ca41ef54910163b74b034fab81c.tar.gz |
QmlCompiler: Handle various date and time conversions correctly
We can coerce QDateTime, QDate and QTime into each other because they
would all be represented by a Date object in JavaScript. Furthermore we
can coerce them all to QString. Technically, we could also coerce
strings to all of them, but we don't want to because that is terrible.
Fixes: QTBUG-109380
Change-Id: I176bfb5b715a6a6750cb5918c44261fa23fb8832
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljscompiler.cpp')
-rw-r--r-- | src/qmlcompiler/qqmljscompiler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljscompiler.cpp b/src/qmlcompiler/qqmljscompiler.cpp index 5ee7ec90b6..964c01c1a2 100644 --- a/src/qmlcompiler/qqmljscompiler.cpp +++ b/src/qmlcompiler/qqmljscompiler.cpp @@ -752,6 +752,7 @@ QQmlJSAotFunction QQmlJSAotCompiler::globalCode() const u"QtQml/qqmllist.h"_s, u"QtCore/qdatetime.h"_s, + u"QtCore/qtimezone.h"_s, u"QtCore/qobject.h"_s, u"QtCore/qstring.h"_s, u"QtCore/qstringlist.h"_s, |