From 54e72e860bc1009d17f94abe720a1b9426eec3d8 Mon Sep 17 00:00:00 2001 From: Ken Patel Date: Thu, 22 Apr 2010 01:14:13 +0000 Subject: [PATCH] plugin - when adding timestamp to logfile names, now uses 1-12 for month rather than 0-11 --- direct/src/plugin/p3dSession.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/plugin/p3dSession.cxx b/direct/src/plugin/p3dSession.cxx index 23dc4d827a..c3903efe0b 100644 --- a/direct/src/plugin/p3dSession.cxx +++ b/direct/src/plugin/p3dSession.cxx @@ -1060,7 +1060,7 @@ start_p3dpython(P3DInstance *inst) { char buffer[buffer_size]; sprintf(buffer, "%02d%02d%02d_%02d%02d%02d", (int)(log_time_local.tm_year+1900-2000), - (int)(log_time_local.tm_mon), + (int)(log_time_local.tm_mon+1), (int)(log_time_local.tm_mday), (int)(log_time_local.tm_hour), (int)(log_time_local.tm_min),