Core/Packets: Fix calendar event time (#1289)

No more -3 hours shift when creating events in the calendar.

Closes #1287
This commit is contained in:
Dmitry Brusenskiy
2019-01-18 16:43:12 +03:00
committed by Barbz
parent 62b05683f5
commit 1952b2fbfb

View File

@@ -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(&lt) + _timezone);
#else
return uint32(mktime(&lt) + timezone);
#endif
return uint32(mktime(&lt));
}