]> granicus.if.org Git - icinga2/commitdiff
Changed timestamp format (again).
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 25 Sep 2012 07:01:24 +0000 (09:01 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 25 Sep 2012 07:02:28 +0000 (09:02 +0200)
Fixes #3153

lib/base/streamlogger.cpp

index bd292878b6aaf54aea1a38a8bf520eb2deb1ca26..dcce087585ab5a8cb95a6f85077f6a2523164305 100644 (file)
@@ -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 << ": "