X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c58c7ec012727bccf3c7ad5ee93200617b9a19..b04fcede8f8f29cbade858ff81247ffbdc482d27:/include/wx/datetime.h 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