CC-2379: "Add Show" uses browser time instead of server time
-Fixed
This commit is contained in:
parent
58c1eff283
commit
dd9ef5b9c8
4 changed files with 51 additions and 18 deletions
|
@ -9,6 +9,7 @@ class ApiController extends Zend_Controller_Action
|
|||
$context = $this->_helper->getHelper('contextSwitch');
|
||||
$context->addActionContext('version', 'json')
|
||||
->addActionContext('recorded-shows', 'json')
|
||||
->addActionContext('server-timestamp', 'json')
|
||||
->addActionContext('upload-file', 'json')
|
||||
->addActionContext('upload-recorded', 'json')
|
||||
->addActionContext('media-monitor-setup', 'json')
|
||||
|
@ -56,6 +57,12 @@ class ApiController extends Zend_Controller_Action
|
|||
$jsonStr = json_encode(array("version"=>AIRTIME_VERSION));
|
||||
echo $jsonStr;
|
||||
}
|
||||
|
||||
public function serverTimestampAction(){
|
||||
|
||||
$this->view->serverTimestamp = array("timestamp"=>time(), "timezoneOffset"=> date("Z"));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows remote client to download requested media file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue