projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix history in wxWebViewIE when using a custom file scheme.
[wxWidgets.git]
/
src
/
common
/
log.cpp
diff --git
a/src/common/log.cpp
b/src/common/log.cpp
index dd0f26e1d6a55012b1c6d7e7c0bf8257206f50ce..c30b582075f757716d1781247b24e79b9bfbc6c1 100644
(file)
--- 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() )
{
#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
}
}
#endif // wxUSE_DATETIME
}