mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
Fix Unix/Windows Compile (timezone issue)
This commit is contained in:
@@ -376,7 +376,12 @@ class ByteBuffer
|
||||
lt.tm_mon = (packedDate >> 20) & 0xF;
|
||||
lt.tm_year = ((packedDate >> 24) & 0x1F) + 100;
|
||||
|
||||
return uint32(mktime(<) + _timezone);
|
||||
#ifdef OS_WIN
|
||||
return uint32(mktime(<) + _timezone);
|
||||
#else
|
||||
return uint32(mktime(<) + timezone);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
ByteBuffer& ReadPackedTime(uint32& time)
|
||||
|
||||
Reference in New Issue
Block a user