X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fprotocols%2Flegacy%2Flegacypeer.cpp;h=0f9c61e058f64ad8f870cca705b95efe73d0fe53;hp=d00004735f4b1dc0f243885d7914f3696130036c;hb=34aa0106620836d360f2deebaa8d88ef52ba1a7e;hpb=74cd32c9ae940a7cfe0487cd1dd3f30df034d016 diff --git a/src/common/protocols/legacy/legacypeer.cpp b/src/common/protocols/legacy/legacypeer.cpp index d0000473..0f9c61e0 100644 --- a/src/common/protocols/legacy/legacypeer.cpp +++ b/src/common/protocols/legacy/legacypeer.cpp @@ -208,7 +208,7 @@ void LegacyPeer::handlePackedFunc(const QVariant &packedFunc) } // The legacy protocol would only send a QTime, no QDateTime // so we assume it's sent today, which works in exactly the same cases as it did in the old implementation - QDateTime dateTime = QDateTime::currentDateTimeUtc(); + QDateTime dateTime = QDateTime::currentDateTime().toUTC(); dateTime.setTime(params[0].toTime()); handle(Protocol::HeartBeat(dateTime)); break; @@ -220,7 +220,7 @@ void LegacyPeer::handlePackedFunc(const QVariant &packedFunc) } // The legacy protocol would only send a QTime, no QDateTime // so we assume it's sent today, which works in exactly the same cases as it did in the old implementation - QDateTime dateTime = QDateTime::currentDateTimeUtc(); + QDateTime dateTime = QDateTime::currentDateTime().toUTC(); dateTime.setTime(params[0].toTime()); handle(Protocol::HeartBeatReply(dateTime)); break;