From 7c967e2f19d7552e7a9cf1b83513237c553b5567 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 20 Mar 2015 11:26:42 +0100 Subject: LOG: fix month in log file --- backends/log/log.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'backends/log/log.cpp') diff --git a/backends/log/log.cpp b/backends/log/log.cpp index 693399bae5..e37296aada 100644 --- a/backends/log/log.cpp +++ b/backends/log/log.cpp @@ -93,10 +93,12 @@ void Log::print(const char *message, const bool printTime) { void Log::printTimeStamp() { TimeDate date; + int curMonth; _system->getTimeAndDate(date); + curMonth = date.tm_mon + 1; // month is base 0, we need base 1 (1 = january and so on) _stream->writeString(Common::String::format("[%d-%02d-%02d %02d:%02d:%02d] ", - date.tm_year + 1900, date.tm_mon, date.tm_mday, + date.tm_year + 1900, curMonth, date.tm_mday, date.tm_hour, date.tm_min, date.tm_sec)); } -- cgit v1.2.3