]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/datetime.h
Fixed context menu in wxRichTextCtrl
[wxWidgets.git] / include / wx / datetime.h
index 5acab9668175ede4ed45cf14988b1c27a6a2132d..7f34cc394fd307fcfe6802e6c26c560c8bcb58d9 100644 (file)
@@ -1085,8 +1085,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
@@ -1676,7 +1676,7 @@ inline time_t wxDateTime::GetTicks() const
         return (time_t)-1;
     }
 
-    return (time_t)((m_time / (long)TIME_T_FACTOR).GetLo())+WX_TIME_BASE_OFFSET ;
+    return (time_t)((m_time / (long)TIME_T_FACTOR).ToLong()) + WX_TIME_BASE_OFFSET;
 }
 
 inline bool wxDateTime::SetToLastWeekDay(WeekDay weekday,