mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
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:
@@ -364,11 +364,7 @@ class ByteBuffer
|
|||||||
lt.tm_mon = (packedDate >> 20) & 0xF;
|
lt.tm_mon = (packedDate >> 20) & 0xF;
|
||||||
lt.tm_year = ((packedDate >> 24) & 0x1F) + 100;
|
lt.tm_year = ((packedDate >> 24) & 0x1F) + 100;
|
||||||
|
|
||||||
#ifdef OS_WIN
|
return uint32(mktime(<));
|
||||||
return uint32(mktime(<) + _timezone);
|
|
||||||
#else
|
|
||||||
return uint32(mktime(<) + timezone);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user