CC-3245: upgrade 1.8->2.0 cause error in show recorder

- fixed
This commit is contained in:
James 2012-01-12 16:36:14 -05:00
parent 9216da7f03
commit 04b592b831
2 changed files with 2 additions and 0 deletions

View File

@ -377,6 +377,7 @@ class ApiController extends Zend_Controller_Action
$this->view->is_recording = false;
$this->view->server_timezone = Application_Model_Preference::GetTimezone();
$rows = Application_Model_Show::GetCurrentShow($today_timestamp);
Application_Model_Show::ConvertToLocalTimeZone($rows, array("starts", "ends", "start_timestamp", "end_timestamp"));

View File

@ -297,6 +297,7 @@ class CommandListener():
temp = self.api_client.get_shows_to_record()
if temp is not None:
shows = temp['shows']
self.server_timezone = temp['server_timezone']
self.parse_shows(shows)
self.logger.info("Bootstrap complete: got initial copy of the schedule")
except Exception, e: