summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-08-26 13:45:20 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-08-26 13:45:20 (GMT)
commit7cdf5c4601ea2a791d35fafadd890508ce434c6f (patch)
tree8851fb9e33ffd56c8aec785149732d00fa53ab6f /Source/cmCTest.cxx
parent09f7ee4480e932049e2ae8d49d73e7fdcdef3ca6 (diff)
downloadCMake-7cdf5c4601ea2a791d35fafadd890508ce434c6f.zip
CMake-7cdf5c4601ea2a791d35fafadd890508ce434c6f.tar.gz
CMake-7cdf5c4601ea2a791d35fafadd890508ce434c6f.tar.bz2
ENH: Make default date shorter
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 6997de0..8cd817f 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -139,7 +139,14 @@ std::string cmCTest::CurrentTime()
struct tm* t = localtime(&currenttime);
//return ::CleanString(ctime(&currenttime));
char current_time[1024];
- strftime(current_time, 1000, "%a %b %d %H:%M:%S %Z %Y", t);
+ if ( m_ShortDateFormat )
+ {
+ strftime(current_time, 1000, "%b %d %H:%M %Z", t);
+ }
+ else
+ {
+ strftime(current_time, 1000, "%a %b %d %H:%M:%S %Z %Y", t);
+ }
//std::cout << "Current_Time: " << current_time << std::endl;
return this->MakeXMLSafe(::CleanString(current_time));
}
@@ -409,6 +416,7 @@ cmCTest::cmCTest()
{
m_Tests[cc] = 0;
}
+ m_ShortDateFormat = true;
m_MaximumPassedTestResultSize = 100 * 1024;
m_MaximumFailedTestResultSize = 200 * 1024;
}