]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/datetime.h
fixed wxGTK1 compilation after wxDC changes (still doesn't work)
[wxWidgets.git] / include / wx / datetime.h
index c5f9f365df2f6cbfb0e487c6407ccce8ec72bbde..5028137aa276c32af0fa388cd08be6b9f70ba72f 100644 (file)
@@ -37,11 +37,8 @@ class WXDLLIMPEXP_FWD_BASE wxDateSpan;
 // set this to the corresponding value in seconds 1/1/1970 has on your
 // systems c-runtime
 
-#if defined(__WXMAC__) && !defined(__DARWIN__) && __MSL__ < 0x6000
-    #define WX_TIME_BASE_OFFSET ( 2082844800L + 126144000L )
-#else
-    #define WX_TIME_BASE_OFFSET 0
-#endif
+#define WX_TIME_BASE_OFFSET 0
+
 /*
  * TODO
  *
@@ -1085,8 +1082,8 @@ public:
     // another one to get the current time broken down
     static struct tm *GetTmNow()
     {
-        time_t t = GetTimeNow();
-        return localtime(&t);
+        static struct tm l_CurrentTime;
+        return GetTmNow(&l_CurrentTime);
     }
 
     // get current time using thread-safe function