X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fprotocols%2Flegacy%2Flegacypeer.cpp;h=0f9c61e058f64ad8f870cca705b95efe73d0fe53;hp=709291f5d9addb745a965bea8b9dbbffac725b39;hb=34aa0106620836d360f2deebaa8d88ef52ba1a7e;hpb=bae8c28f27159ec803daff083da125b313c128d1 diff --git a/src/common/protocols/legacy/legacypeer.cpp b/src/common/protocols/legacy/legacypeer.cpp index 709291f5..0f9c61e0 100644 --- a/src/common/protocols/legacy/legacypeer.cpp +++ b/src/common/protocols/legacy/legacypeer.cpp @@ -18,6 +18,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ +#include + #include "legacypeer.h" using namespace Protocol; @@ -206,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; @@ -218,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;