public function showHistoryFeedAction() { try { $request = $this->getRequest(); $current_time = time(); $starts_epoch = $request->getParam("start", $current_time - 60 * 60 * 24); $ends_epoch = $request->getParam("end", $current_time); $startsDT = DateTime::createFromFormat("U", $starts_epoch, new DateTimeZone("UTC")); $endsDT = DateTime::createFromFormat("U", $ends_epoch, new DateTimeZone("UTC")); $historyService = new Application_Service_HistoryService(); $shows = $historyService->getShowList($startsDT, $endsDT); $this->_helper->json->sendJson($shows); } catch (Exception $e) { Logging::info($e); Logging::info($e->getMessage()); } }