diff --git a/include/wx/datetime.h b/include/wx/datetime.h index c5f9f365df..7f34cc394f 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -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