Guest User

Untitled

a guest
Nov 17th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.45 KB | None | 0 0
  1. index 6dbeac9..933684f 100644
  2. --- a/src/common/time.cpp
  3. +++ b/src/common/time.cpp
  4. @@ -341,7 +341,11 @@ wxLongLong wxGetUTCTimeMillis()
  5.  
  6.  wxLongLong wxGetLocalTimeMillis()
  7.  {
  8. -    return wxGetUTCTimeMillis() - wxGetTimeZone()*MILLISECONDS_PER_SECOND;
  9. +    static int ntz = -9999;
  10. +    if(ntz == -9999) {
  11. +        ntz = wxGetTimeZone();
  12. +    }
  13. +    return wxGetUTCTimeMillis() - (ntz * MILLISECONDS_PER_SECOND);
  14.  }
  15.  
  16.  #else // !wxUSE_LONGLONG
Add Comment
Please, Sign In to add comment