diff --git a/include/wx/datetime.h b/include/wx/datetime.h index 7eccaa1652..1f7074ee04 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -1087,8 +1087,13 @@ public: // another one to get the current time broken down static struct tm *GetTmNow() { +#ifdef __WXWINCE__ + static struct tm l_CurrentTime; + return GetTmNow(&l_CurrentTime); +#else time_t t = GetTimeNow(); return localtime(&t); +#endif } // get current time using thread-safe function