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
Edward Welbourne 2023-03-24 15:09:48 +01:00 committed by Volker Hilsheimer
parent d43391422a
commit 919d2e0c5a
1 changed files with 1 additions and 1 deletions

View File

@ -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!");