|
@@ -38,7 +38,7 @@
|
|
# include <unistd.h> // IWYU pragma: keep
|
|
# include <unistd.h> // IWYU pragma: keep
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#include "cm_get_date.h"
|
|
|
|
|
|
+#include "cm_parse_date.h"
|
|
|
|
|
|
#include "cmCMakePresetsGraph.h"
|
|
#include "cmCMakePresetsGraph.h"
|
|
#include "cmCTestBuildAndTest.h"
|
|
#include "cmCTestBuildAndTest.h"
|
|
@@ -214,7 +214,7 @@ struct tm* cmCTest::GetNightlyTime(std::string const& str, bool tomorrowtag)
|
|
char buf[1024];
|
|
char buf[1024];
|
|
std::snprintf(buf, sizeof(buf), "%d%02d%02d %s", lctime->tm_year + 1900,
|
|
std::snprintf(buf, sizeof(buf), "%d%02d%02d %s", lctime->tm_year + 1900,
|
|
lctime->tm_mon + 1, lctime->tm_mday, str.c_str());
|
|
lctime->tm_mon + 1, lctime->tm_mday, str.c_str());
|
|
- time_t ntime = cm_get_date(tctime, buf);
|
|
|
|
|
|
+ time_t ntime = cm_parse_date(tctime, buf);
|
|
cmCTestLog(this, DEBUG,
|
|
cmCTestLog(this, DEBUG,
|
|
" Get the nightly start time: " << ntime << std::endl);
|
|
" Get the nightly start time: " << ntime << std::endl);
|
|
tctime = time(nullptr);
|
|
tctime = time(nullptr);
|
|
@@ -2742,7 +2742,7 @@ void cmCTest::SetStopTime(std::string const& time_str)
|
|
lctime->tm_mon + 1, lctime->tm_mday, time_str.c_str(),
|
|
lctime->tm_mon + 1, lctime->tm_mday, time_str.c_str(),
|
|
tzone_offset);
|
|
tzone_offset);
|
|
|
|
|
|
- time_t stop_time = cm_get_date(current_time, buf);
|
|
|
|
|
|
+ time_t stop_time = cm_parse_date(current_time, buf);
|
|
if (stop_time == -1) {
|
|
if (stop_time == -1) {
|
|
this->Impl->StopTime = std::chrono::system_clock::time_point();
|
|
this->Impl->StopTime = std::chrono::system_clock::time_point();
|
|
return;
|
|
return;
|