mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 22:06:15 +00:00
Fixup 4d51a05c
: QTimeZone is available since Qt 6.5
This commit is contained in:
parent
7cda9a1d9f
commit
05f50a0544
@ -19,7 +19,7 @@
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QLocale>
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 7, 0))
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 5, 0))
|
||||
#include <QTimeZone>
|
||||
#endif
|
||||
|
||||
@ -72,7 +72,7 @@ time_t from_asctime_utc(string t)
|
||||
<< "´ (invalid format)");
|
||||
return static_cast<time_t>(-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);
|
||||
|
Loading…
Reference in New Issue
Block a user