diff --git a/docs/changes.txt b/docs/changes.txt index 1163d46776..286f5b1363 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -136,6 +136,7 @@ wxMSW: - Fix best size calculation for wxNotebook with multiple rows (Alex McCarthy). - Correct coordinates of wxDropFilesEvent (Dmitriy Maksimov). - Fix handling of abandoned mutexes in wxMutex (David Heffernan). +- Avoid warnings about deprecated localtime with MSVC8/9 (Chris Stankevitz). wxMSW/CE: diff --git a/include/wx/datetime.h b/include/wx/datetime.h index 0c1edb6856..8fd9bd4ace 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -1100,13 +1100,8 @@ 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