diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-10-30 15:05:08 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-10-30 15:05:08 (GMT) |
commit | e92779a657ebcfd19d71b956b5484cf1dfd1f687 (patch) | |
tree | 80076a22149d3e3a27d92d56e7f866ac05a6b267 /Source/cmCTest.cxx | |
parent | d21532cd02e18b1677983849a9f5d7454e24bb74 (diff) | |
download | CMake-e92779a657ebcfd19d71b956b5484cf1dfd1f687.zip CMake-e92779a657ebcfd19d71b956b5484cf1dfd1f687.tar.gz CMake-e92779a657ebcfd19d71b956b5484cf1dfd1f687.tar.bz2 |
BUG: Fix Bug #310 - CTest sends wrong time to cvs on Windows
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index b59be0c..331fb22 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -536,11 +536,15 @@ int cmCTest::UpdateDirectory() { struct tm* t = ::GetNightlyTime(m_DartConfiguration["NightlyStartTime"]); char current_time[1024]; - strftime(current_time, 1000, "%Y-%m-%d %H:%M:%S %Z", t); + sprintf(current_time, "%04d-%02d-%02d %02d:%02d:%02d UTC", + 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 = current_time + - // m_DartConfiguration["NightlyStartTime"]; extra_update_opts += "-D \"" + today_update_date +"\""; //std::cout << "Update: " << extra_update_opts << std::endl; } |