aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/qthttp/qhttpauthenticator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/objects/qthttp/qhttpauthenticator.cpp')
-rw-r--r--src/modules/objects/qthttp/qhttpauthenticator.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/objects/qthttp/qhttpauthenticator.cpp b/src/modules/objects/qthttp/qhttpauthenticator.cpp
index 2d256c6de..35ed15482 100644
--- a/src/modules/objects/qthttp/qhttpauthenticator.cpp
+++ b/src/modules/objects/qthttp/qhttpauthenticator.cpp
@@ -50,6 +50,7 @@
#include <qendian.h>
#include <qstring.h>
#include <qdatetime.h>
+#include <QTimeZone>
#include <QRandomGenerator>
//#define NTLMV1_CLIENT
@@ -1308,8 +1309,14 @@ static QByteArray qEncodeNtlmv2Response(const QHttpAuthenticatorPrivate * ctx,
}
else
{
+#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
QDateTime currentTime(QDate::currentDate(),
QTime::currentTime(), Qt::UTC);
+#else
+ QDateTime currentTime(QDate::currentDate(),
+ QTime::currentTime(), QTimeZone::UTC);
+#endif
+
// number of seconds between 1601 and epoc(1970)
// 369 years, 89 leap years