mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-24 04:37:37 +01:00
CLF-formatted time in the log (fix #775)
This commit is contained in:
parent
05c2adeefd
commit
70e5825ca7
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ namespace log {
|
||||||
|
|
||||||
const char * Log::TimeAsString(std::time_t t) {
|
const char * Log::TimeAsString(std::time_t t) {
|
||||||
if (t != m_LastTimestamp) {
|
if (t != m_LastTimestamp) {
|
||||||
strftime(m_LastDateTime, sizeof(m_LastDateTime), "%H:%M:%S", localtime(&t));
|
strftime(m_LastDateTime, sizeof(m_LastDateTime), "[%d/%b/%Y:%H:%M:%S %z]", localtime(&t));
|
||||||
m_LastTimestamp = t;
|
m_LastTimestamp = t;
|
||||||
}
|
}
|
||||||
return m_LastDateTime;
|
return m_LastDateTime;
|
||||||
|
|
Loading…
Add table
Reference in a new issue