mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
BUG: 8898 fix date in ctest nightly time
This commit is contained in:
+5
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user