adding end date check in get shows just incase nobody checks calendar for a while.

preferences had to be updated because there will be no user id if the daemon process updates the date pouplated until pref.
This commit is contained in:
naomiaro 2011-04-04 00:02:35 -04:00
parent 2033b904c8
commit 7f775105e2
4 changed files with 37 additions and 14 deletions

View file

@ -257,7 +257,10 @@ class ApiController extends Zend_Controller_Action
}
$today_timestamp = date("Y-m-d H:i:s");
$this->view->shows = Show::getShows($today_timestamp, null, $excludeInstance=NULL, $onlyRecord=TRUE);
$now = new DateTime($today_timestamp);
$end_timestamp = $now->add(new DateInterval("PT2H"));
$end_timestamp = $end_timestamp->format("Y-m-d H:i:s");
$this->view->shows = Show::getShows($today_timestamp, $end_timestamp, $excludeInstance=NULL, $onlyRecord=TRUE);
}
public function uploadRecordedAction()