diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2022-08-30 16:08:07 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2022-12-09 16:16:48 +0100 |
commit | 3f282e8896980822b86bc009f85bf047c7d9c189 (patch) | |
tree | 60e5632b1bb5a02fbe94e69eb5e53250904fe6d3 /tests/auto/corelib/io/qsettings/tst_qsettings.cpp | |
parent | e71099989ebde3156c23066ff2d79ae63c08ccc4 (diff) |
Adapt corelib to use QTimeZone in place of Qt::TimeSpec
This saves (mostly in corelib/time/) some complications that used to
arise from needing different code-paths for different time-specs.
Task-number: QTBUG-108199
Change-Id: I5dbd09859fce7599f1ba761f8a0bfc4633d0bef9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/io/qsettings/tst_qsettings.cpp')
-rw-r--r-- | tests/auto/corelib/io/qsettings/tst_qsettings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/io/qsettings/tst_qsettings.cpp b/tests/auto/corelib/io/qsettings/tst_qsettings.cpp index 753d3f8b8a..bf1c165b4f 100644 --- a/tests/auto/corelib/io/qsettings/tst_qsettings.cpp +++ b/tests/auto/corelib/io/qsettings/tst_qsettings.cpp @@ -1328,7 +1328,7 @@ void tst_QSettings::testVariantTypes() testValue("collectList", l4, QVariantList); QDateTime dt = QDateTime::currentDateTime(); - dt.setOffsetFromUtc(3600); + dt.setTimeZone(QTimeZone::fromSecondsAheadOfUtc(3600)); testValue("dateTime", dt, QDateTime); #if QT_CONFIG(shortcut) |