From 70e5825ca766ad6760055f78cad1ec3f4cff749f Mon Sep 17 00:00:00 2001 From: Darknet Villain Date: Mon, 18 Sep 2017 16:03:12 -0400 Subject: [PATCH] CLF-formatted time in the log (fix #775) --- libi2pd/Log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/Log.cpp b/libi2pd/Log.cpp index 7cd4205e..3d0a060c 100644 --- a/libi2pd/Log.cpp +++ b/libi2pd/Log.cpp @@ -118,7 +118,7 @@ namespace log { const char * Log::TimeAsString(std::time_t t) { 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; } return m_LastDateTime;