Include proper timestamp in auto-accept emails

Fixes a regression introduced in c70b340 (Close requests before
accepting, 2014-07-29).

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-10-03 13:00:40 +02:00
parent 76872d8b08
commit 55586d9c22

View file

@ -199,13 +199,13 @@ function pkgreq_file($ids, $type, $merge_into, $comments) {
* maintainer will not be included in the Cc list of the * maintainer will not be included in the Cc list of the
* request notification email. * request notification email.
*/ */
$out_of_date_time = gmdate("Y-m-d", intval($details["OutOfDateTS"]));
pkgreq_close($request_id, "accepted", pkgreq_close($request_id, "accepted",
"The package base has been flagged out-of-date " . "The package base has been flagged out-of-date " .
"since " . $out_of_date_time . ".", true); "since " . $out_of_date_time . ".", true);
$q = "UPDATE PackageBases SET MaintainerUID = NULL "; $q = "UPDATE PackageBases SET MaintainerUID = NULL ";
$q.= "WHERE ID = " . $base_id; $q.= "WHERE ID = " . $base_id;
$dbh->exec($q); $dbh->exec($q);
$out_of_date_time = gmdate("Y-m-d", intval($details["OutOfDateTS"]));
} }
return array(true, __("Added request successfully.")); return array(true, __("Added request successfully."));