summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestUpdateHandler.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-24 17:50:48 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-24 17:50:48 (GMT)
commitd76bc78a1247d0ac5d151a510b8d6ba231daa043 (patch)
tree6b14d3f30b1049b2440a7b064bfd2b2262f9ebe4 /Source/CTest/cmCTestUpdateHandler.cxx
parentfdd0d2a32bffc3742b5d40c066a61794135bd6f4 (diff)
downloadCMake-d76bc78a1247d0ac5d151a510b8d6ba231daa043.zip
CMake-d76bc78a1247d0ac5d151a510b8d6ba231daa043.tar.gz
CMake-d76bc78a1247d0ac5d151a510b8d6ba231daa043.tar.bz2
ENH: Factor out nightly start time computation
Move generation of the nightly start time string from cmCTestUpdateHandler::ProcessHandler into cmCTestVC.
Diffstat (limited to 'Source/CTest/cmCTestUpdateHandler.cxx')
-rw-r--r--Source/CTest/cmCTestUpdateHandler.cxx13
1 files changed, 1 insertions, 12 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx
index e2cc0f7..ff86882 100644
--- a/Source/CTest/cmCTestUpdateHandler.cxx
+++ b/Source/CTest/cmCTestUpdateHandler.cxx
@@ -364,18 +364,7 @@ int cmCTestUpdateHandler::ProcessHandler()
std::string extra_update_opts;
if ( this->CTest->GetTestModel() == cmCTest::NIGHTLY )
{
- struct tm* t = this->CTest->GetNightlyTime(
- this->CTest->GetCTestConfiguration("NightlyStartTime"),
- this->CTest->GetTomorrowTag());
- char current_time[1024];
- sprintf(current_time, "%04d-%02d-%02d %02d:%02d:%02d",
- t->tm_year + 1900,
- t->tm_mon + 1,
- t->tm_mday,
- t->tm_hour,
- t->tm_min,
- t->tm_sec);
- std::string today_update_date = current_time;
+ std::string today_update_date = vc->GetNightlyTime();
// TODO: SVN
switch ( this->UpdateType )