[PATCH 2/2] BUG: Initialize StartDate when new build is scheduled using Web API
Igor Murzov
e-mail at date.by
Wed Jul 24 13:37:51 UTC 2013
This commit fixes the following error:
(ClientJobSchedule::Save): SQL error: ERROR: invalid input syntax
for type timestamp: "" LINE 4: VALUES ('1','2','','1980-01-01 00:00:00','2013...
---
api/api_build.php | 1 +
1 file changed, 1 insertion(+)
diff --git a/api/api_build.php b/api/api_build.php
index ccdf30d..20ced89 100644
--- a/api/api_build.php
+++ b/api/api_build.php
@@ -348,6 +348,7 @@ class BuildAPI extends CDashAPI
$clientJobSchedule->BuildConfiguration = pdo_real_escape_string($this->Parameters['configuration']);
}
+ $clientJobSchedule->StartDate = date("Y-m-d H:i:s");
$clientJobSchedule->StartTime = date("Y-m-d H:i:s");
$clientJobSchedule->EndDate = '1980-01-01 00:00:00';
$clientJobSchedule->RepeatTime = 0; // No repeat
--
1.7.9.5
--MP_/vktH2BgQPTS4H3NzIoeL.Om--
More information about the CDash
mailing list