From: Gunnar Beutner Date: Tue, 25 Sep 2012 07:01:24 +0000 (+0200) Subject: Changed timestamp format (again). X-Git-Tag: v0.0.1~73^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=345ebe8061d66a74c2ad013ee83a32617622b227;p=icinga2 Changed timestamp format (again). Fixes #3153 --- diff --git a/lib/base/streamlogger.cpp b/lib/base/streamlogger.cpp index bd292878b..dcce08758 100644 --- a/lib/base/streamlogger.cpp +++ b/lib/base/streamlogger.cpp @@ -58,7 +58,7 @@ void StreamLogger::ProcessLogEntry(std::ostream& stream, const LogEntry& entry) time_t ts = entry.Timestamp; tm tmnow = *localtime(&ts); - strftime(timestamp, sizeof(timestamp), "%a, %d %b %Y %T %z", &tmnow); + strftime(timestamp, sizeof(timestamp), "%Y/%m/%d %H:%M:%S %z", &tmnow); stream << "[" << timestamp << "] " << Logger::SeverityToString(entry.Severity) << "/" << entry.Facility << ": "