Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index 6dbeac9..933684f 100644
- --- a/src/common/time.cpp
- +++ b/src/common/time.cpp
- @@ -341,7 +341,11 @@ wxLongLong wxGetUTCTimeMillis()
- wxLongLong wxGetLocalTimeMillis()
- {
- - return wxGetUTCTimeMillis() - wxGetTimeZone()*MILLISECONDS_PER_SECOND;
- + static int ntz = -9999;
- + if(ntz == -9999) {
- + ntz = wxGetTimeZone();
- + }
- + return wxGetUTCTimeMillis() - (ntz * MILLISECONDS_PER_SECOND);
- }
- #else // !wxUSE_LONGLONG
Add Comment
Please, Sign In to add comment