diff options
| author | 2023-09-27 17:05:14 +0200 | |
|---|---|---|
| committer | 2023-10-18 10:26:35 +0200 | |
| commit | 0ad5e82cc7599e927251f853578f0176ab7f976b (patch) | |
| tree | 0856898d862e324b64fddddc14f2581af4fcd177 /src/modules/objects | |
| parent | Qt6: required Qt5 compatibility module; needed by QRegExp (diff) | |
| download | KVIrc-0ad5e82cc7599e927251f853578f0176ab7f976b.tar.gz KVIrc-0ad5e82cc7599e927251f853578f0176ab7f976b.tar.bz2 KVIrc-0ad5e82cc7599e927251f853578f0176ab7f976b.zip | |
Port QDateTime::toTime_t() to toSecsSinceEpoch(); it's a quint64, but it should cast to time_t safely until year 2106
Diffstat (limited to 'src/modules/objects')
| -rw-r--r-- | src/modules/objects/qthttp/qhttpauthenticator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/objects/qthttp/qhttpauthenticator.cpp b/src/modules/objects/qthttp/qhttpauthenticator.cpp index 9acb7717b..daf1465e4 100644 --- a/src/modules/objects/qthttp/qhttpauthenticator.cpp +++ b/src/modules/objects/qthttp/qhttpauthenticator.cpp @@ -1314,7 +1314,7 @@ static QByteArray qEncodeNtlmv2Response(const QHttpAuthenticatorPrivate * ctx, // 369 years, 89 leap years // ((369 * 365) + 89) * 24 * 3600 = 11644473600 - time = Q_UINT64_C(currentTime.toTime_t() + 11644473600); + time = Q_UINT64_C(currentTime.toSecsSinceEpoch() + 11644473600); // represented as 100 nano seconds time = Q_UINT64_C(time * 10000000); |
