[Scummvm-cvs-logs] scummvm master -> 7c967e2f19d7552e7a9cf1b83513237c553b5567
m-kiewitz
m_kiewitz at users.sourceforge.net
Fri Mar 20 11:26:49 CET 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7c967e2f19 LOG: fix month in log file
Commit: 7c967e2f19d7552e7a9cf1b83513237c553b5567
https://github.com/scummvm/scummvm/commit/7c967e2f19d7552e7a9cf1b83513237c553b5567
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2015-03-20T11:26:42+01:00
Commit Message:
LOG: fix month in log file
Changed paths:
backends/log/log.cpp
diff --git a/backends/log/log.cpp b/backends/log/log.cpp
index 693399b..e37296a 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));
}
More information about the Scummvm-git-logs
mailing list