]> granicus.if.org Git - icinga2/commitdiff
Change log timestamp format.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 18 Sep 2013 22:05:56 +0000 (00:05 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 18 Sep 2013 22:06:14 +0000 (00:06 +0200)
lib/base/streamlogger.cpp

index 674b509adf7927587ef190a4c2d9bd7dad330763..c1f36c824389c830c31652773330be53702819f8 100644 (file)
@@ -67,7 +67,7 @@ void StreamLogger::BindStream(std::ostream *stream, bool ownsStream)
  */
 void StreamLogger::ProcessLogEntry(std::ostream& stream, bool tty, const LogEntry& entry)
 {
-       String timestamp = Utility::FormatDateTime("%Y/%m/%d %H:%M:%S %z", entry.Timestamp);
+       String timestamp = Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", entry.Timestamp);
 
        boost::mutex::scoped_lock lock(m_Mutex);