BUG: 8898 fix date in ctest nightly time

This commit is contained in:
Bill Hoffman 2009-05-07 18:20:42 -04:00
parent 028c52841a
commit 00c253847a

View File

@ -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