* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include <QTcpSocket>
+
#include "legacypeer.h"
using namespace Protocol;
}
// 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;
}
// 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;