Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.15.5, 6.2.0 Beta3
-
Fix Version/s: 6.4.0 Beta1, 6.4, 6.5.0 Beta1
-
Component/s: QML: Declarative and Javascript Engine
-
Environment:Windows 10 Pro 21H1, MinGW 8.1.0 64-bit
-
Platform/s:
-
Story Points:13
-
Commits:dff02466a0 (qt/qtdeclarative/dev) 3033e99fa8 (qt/qtdeclarative/6.4) 3033e99fa8 (qt/tqtc-qtdeclarative/6.4)
-
Sprint:Team A Foundation Sprint 56, Team A Foundation Sprint 57, Team A Foundation Sprint 58, Team A Foundation Sprint 59
Description
Steps to reproduce
- Set your PC's Region to France and Time Zone to "(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna" (CEST)
- Add this to a Hello World QML project:
Component.onCompleted: { let d = new Date() console.log("Now: " + d) d.setHours(0, 0, 0) console.log("Midnight: " + d) }
MSVC 2019 64-bit results (correct)
qml: Now: Tue Aug 24 15:37:35 2021 GMT+0200
qml: Midnight: Tue Aug 24 00:00:00 2021 GMT+0200
MinGW 8.1.0 64-bit results (wrong)
qml: Now: Tue Aug 24 15:37:41 2021 GMT+0100
qml: Midnight: Tue Aug 24 01:00:00 2021 GMT+0100
- 1st line shows the correct local time but the wrong timezone
- 2nd line does not show midnight (and also shows the wrong timezone)
Attachments
Issue Links
- is duplicated by
-
QTBUG-102971 Something fishy going on on MinGW with QML Date
-
- Closed
-
- relates to
-
QTBUG-78996 JavaScript getDay() regression on MinGW
-
- Closed
-
-
QTBUG-100014 tst_qqmlqt fails on Android
-
- Closed
-
-
QTBUG-85149 qv4dateobject.cpp uses incorrect daylight savings calculation
-
- Closed
-