CC-3245: upgrade 1.8->2.0 cause error in show recorder
- fixed
This commit is contained in:
parent
9216da7f03
commit
04b592b831
|
@ -377,6 +377,7 @@ class ApiController extends Zend_Controller_Action
|
||||||
|
|
||||||
|
|
||||||
$this->view->is_recording = false;
|
$this->view->is_recording = false;
|
||||||
|
$this->view->server_timezone = Application_Model_Preference::GetTimezone();
|
||||||
|
|
||||||
$rows = Application_Model_Show::GetCurrentShow($today_timestamp);
|
$rows = Application_Model_Show::GetCurrentShow($today_timestamp);
|
||||||
Application_Model_Show::ConvertToLocalTimeZone($rows, array("starts", "ends", "start_timestamp", "end_timestamp"));
|
Application_Model_Show::ConvertToLocalTimeZone($rows, array("starts", "ends", "start_timestamp", "end_timestamp"));
|
||||||
|
|
|
@ -297,6 +297,7 @@ class CommandListener():
|
||||||
temp = self.api_client.get_shows_to_record()
|
temp = self.api_client.get_shows_to_record()
|
||||||
if temp is not None:
|
if temp is not None:
|
||||||
shows = temp['shows']
|
shows = temp['shows']
|
||||||
|
self.server_timezone = temp['server_timezone']
|
||||||
self.parse_shows(shows)
|
self.parse_shows(shows)
|
||||||
self.logger.info("Bootstrap complete: got initial copy of the schedule")
|
self.logger.info("Bootstrap complete: got initial copy of the schedule")
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
|
Loading…
Reference in New Issue