Revision: 818
http://sourceforge.net/p/polserver/code/818
Author: turley
Date: 2014-06-14 07:11:12 +0000 (Sat, 14 Jun 2014)
Log Message:
-----------
fixed month number in logfiles
Modified Paths:
--------------
trunk/pol-core/clib/logfacility.cpp
Modified: trunk/pol-core/clib/logfacility.cpp
===================================================================
--- trunk/pol-core/clib/logfacility.cpp 2014-06-13 18:42:27 UTC (rev 817)
+++ trunk/pol-core/clib/logfacility.cpp 2014-06-14 07:11:12 UTC (rev 818)
@@ -333,7 +333,7 @@
struct tm* tm_now = localtime( &now );
fmt::Writer tmp; // write '[%m/%d %H:%M:%S] '
tmp << '[' <<
- fmt::pad( tm_now->tm_mon, 2, '0' ) << '/' << fmt::pad( tm_now->tm_mday, 2, '0' ) << ' '
+ fmt::pad( tm_now->tm_mon+1, 2, '0' ) << '/' << fmt::pad( tm_now->tm_mday, 2, '0' ) << ' '
<< fmt::pad( tm_now->tm_hour, 2, '0' ) << ':'
<< fmt::pad( tm_now->tm_min, 2, '0' ) << ':'
<< fmt::pad( tm_now->tm_sec, 2, '0' ) << "] ";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|