From 135d1ad06573111940d0fd348c50188196a227be Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 21 Aug 2007 12:14:09 +0000 Subject: [PATCH] Applied patch [ 1764987 ] fix localtime link error using wm5 SDK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/datetime.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.50.0