From 1952b2fbfbb3792319f320eb5d2bf22aa9a7dd4f Mon Sep 17 00:00:00 2001 From: Dmitry Brusenskiy Date: Fri, 18 Jan 2019 16:43:12 +0300 Subject: [PATCH] Core/Packets: Fix calendar event time (#1289) No more -3 hours shift when creating events in the calendar. Closes #1287 --- src/common/Packets/ByteBuffer.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/common/Packets/ByteBuffer.h b/src/common/Packets/ByteBuffer.h index bbbb301b1..86c7d207d 100644 --- a/src/common/Packets/ByteBuffer.h +++ b/src/common/Packets/ByteBuffer.h @@ -364,11 +364,7 @@ class ByteBuffer lt.tm_mon = (packedDate >> 20) & 0xF; lt.tm_year = ((packedDate >> 24) & 0x1F) + 100; - #ifdef OS_WIN - return uint32(mktime(<) + _timezone); - #else - return uint32(mktime(<) + timezone); - #endif + return uint32(mktime(<)); }