From 05f50a0544dde0e5c344f445029f824c3701d894 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 21 Oct 2024 17:37:43 +0200 Subject: [PATCH] Fixup 4d51a05c: QTimeZone is available since Qt 6.5 --- src/support/lyxtime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/support/lyxtime.cpp b/src/support/lyxtime.cpp index daf3dcc9ac..99a797254c 100644 --- a/src/support/lyxtime.cpp +++ b/src/support/lyxtime.cpp @@ -19,7 +19,7 @@ #include #include -#if (QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)) +#if (QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)) #include #endif @@ -72,7 +72,7 @@ time_t from_asctime_utc(string t) << "ยด (invalid format)"); return static_cast(-1); } -#if (QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)) +#if (QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)) loc_dt.setTimeZone(QTimeZone(QTimeZone::UTC)); #else loc_dt.setTimeSpec(Qt::UTC);