summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-05-07 22:20:42 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-05-07 22:20:42 (GMT)
commit00c253847a06936ae7c0d397c52287179e505dc1 (patch)
tree510dd77a6169c4fbfd57fbabf182059dd9644d6f /Source/cmCTest.cxx
parent028c52841a154906a00e39ff9b39ac81581854a1 (diff)
downloadCMake-00c253847a06936ae7c0d397c52287179e505dc1.zip
CMake-00c253847a06936ae7c0d397c52287179e505dc1.tar.gz
CMake-00c253847a06936ae7c0d397c52287179e505dc1.tar.bz2
BUG: 8898 fix date in ctest nightly time
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 364790b..7f0702c 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -74,8 +74,11 @@ struct tm* cmCTest::GetNightlyTime(std::string str,
char buf[1024];
// add todays year day and month to the time in str because
// curl_getdate no longer assumes the day is today
- sprintf(buf, "%d%02d%02d %s", lctime->tm_year+1900, lctime->tm_mday,
- lctime->tm_mon, str.c_str());
+ sprintf(buf, "%d%02d%02d %s",
+ lctime->tm_year+1900,
+ lctime->tm_mon +1,
+ lctime->tm_mday,
+ str.c_str());
cmCTestLog(this, OUTPUT, "Determine Nightly Start Time" << std::endl
<< " Specified time: " << str.c_str() << std::endl);
//Convert the nightly start time to seconds. Since we are