add overdue commenter
This commit is contained in:
parent
999bd7cc06
commit
5c53c5e690
@ -85,7 +85,12 @@ foreach($issues as $issue){
|
||||
//$issue->due_date=$rrule[0]->format('c');
|
||||
//$issue->save();
|
||||
//if( date('Y-m-d',strtotime($issue->due_date)) != $next_exc->format('Y-m-d') ){
|
||||
/*if( !$issue->due_date ){
|
||||
$issue->setDueDate($next_exc);
|
||||
}*/
|
||||
if( $issue->due_date ){
|
||||
if( strtotime(date('Y-m-d',strtotime($issue->due_date))) < strtotime($next_exc->format('Y-m-d')) ){
|
||||
echo "@Overdue\n";
|
||||
$issue->addComment("Overdue!!\n\nNext: ".$next_exc->format('Y-m-d'));
|
||||
}
|
||||
}else{
|
||||
$issue->setDueDate($next_exc);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user