]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/datetime.h
make various control names constants of type char, not wxChar, as this is more compat...
[wxWidgets.git] / include / wx / datetime.h
index c5f9f365df2f6cbfb0e487c6407ccce8ec72bbde..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