Correct time zone in tst_QDateTimeEdit::stepIntoDSTGap()
Given that QDTE only supports local time and UTC, using Europe/Oslo as zone was disconnected from reality, especially as various QDateTime()s were constructed using local time. Use the system zone. Pick-to: 6.5 6.2 Change-Id: I95b3a6a6acf9ffc2b8c7f05d3dd9440ff173abfe Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>bb10
parent
d43391422a
commit
919d2e0c5a
|
|
@ -4697,7 +4697,7 @@ void tst_QDateTimeEdit::stepIntoDSTGap_data()
|
|||
QTest::addColumn<int>("steps");
|
||||
QTest::addColumn<QDateTime>("end");
|
||||
|
||||
const QTimeZone timeZone = QTimeZone("Europe/Oslo");
|
||||
const QTimeZone timeZone = QTimeZone::systemTimeZone();
|
||||
if (!timeZone.hasDaylightTime())
|
||||
QSKIP("This test needs to run in a timezone that observes DST!");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue