X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a16e51b56ac3c46af2f2f7630c8e71b30c2b374d..eea4d01c65f9b29baa1193db762b4c6b8144af24:/src/common/log.cpp

diff --git a/src/common/log.cpp b/src/common/log.cpp
index dd0f26e1d6..c30b582075 100644
--- a/src/common/log.cpp
+++ b/src/common/log.cpp
@@ -676,16 +676,8 @@ void wxLog::TimeStamp(wxString *str)
 #if wxUSE_DATETIME
     if ( !ms_timestamp.empty() )
     {
-        wxChar buf[256];
-        time_t timeNow;
-        (void)time(&timeNow);
-
-        struct tm tm;
-        wxStrftime(buf, WXSIZEOF(buf),
-                    ms_timestamp, wxLocaltime_r(&timeNow, &tm));
-
-        str->Empty();
-        *str << buf << wxS(": ");
+        *str = wxDateTime::UNow().Format(ms_timestamp);
+        *str += wxS(": ");
     }
 #endif // wxUSE_DATETIME
 }