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:
parent
62b05683f5
commit
1952b2fbfb
1 changed files with 1 additions and 5 deletions
|
|
@ -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(<));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue