summaryrefslogtreecommitdiff
path: root/src/corelib/time/qdatetime.cpp
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2020-04-22 17:38:37 +0300
committerAndrei Golubev <andrei.golubev@qt.io>2020-05-20 23:49:57 +0300
commitc7f14deb7c9b517edaa8548f387d6eae1663ec7b (patch)
tree1d5f59b50ca1dc562fee5000eadc37c04c392ff5 /src/corelib/time/qdatetime.cpp
parent2affb0d3ecafd9d371cff91f9f6b0a68fe0faa45 (diff)
downloadqtbase-c7f14deb7c9b517edaa8548f387d6eae1663ec7b.tar.gz
Teach QDateTimeParser some common time-zone offset formats
Fixes: QTBUG-83687 Fixes: QTBUG-83844 Change-Id: Ia1c827017b93cf8277aa5a0266805d773d2d9818 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit bed25fdf6065d7137fa5610e4f214e9a8f8e172b)
Diffstat (limited to 'src/corelib/time/qdatetime.cpp')
-rw-r--r--src/corelib/time/qdatetime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/time/qdatetime.cpp b/src/corelib/time/qdatetime.cpp
index 0c9da44576..1c6b8eb9b9 100644
--- a/src/corelib/time/qdatetime.cpp
+++ b/src/corelib/time/qdatetime.cpp
@@ -2737,7 +2737,7 @@ static QString qt_tzname(QDateTimePrivate::DaylightStatus daylightStatus)
#endif // Q_OS_WIN
}
-#if QT_CONFIG(datetimeparser) && QT_CONFIG(timezone)
+#if QT_CONFIG(datetimeparser)
/*
\internal
Implemented here to share qt_tzname()
@@ -2755,7 +2755,7 @@ int QDateTimeParser::startsWithLocalTimeZone(const QStringRef name)
}
return 0;
}
-#endif // datetimeparser && timezone
+#endif // datetimeparser
// Calls the platform variant of mktime for the given date, time and daylightStatus,
// and updates the date, time, daylightStatus and abbreviation with the returned values