fix month value in log's timestamp

This commit is contained in:
Peter Hatina 2015-01-04 15:01:45 +01:00
parent a00250fda6
commit 427e2ade20
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ std::string Logger::timestamp()
time_info = localtime(&raw_time);
std::stringstream ss;
ss << std::setfill('0') << std::setw(4) << time_info->tm_year + 1900
<< '/' << std::setw(2) << time_info->tm_mon
<< '/' << std::setw(2) << time_info->tm_mon + 1
<< '/' << std::setw(2) << time_info->tm_mday
<< ' ' << std::setw(2) << time_info->tm_hour
<< ':' << std::setw(2) << time_info->tm_min