CC-2379: "Add Show" uses browser time instead of server time

-Fixed
This commit is contained in:
martin 2011-08-18 15:44:16 -04:00
parent 58c1eff283
commit dd9ef5b9c8
4 changed files with 51 additions and 18 deletions

View file

@ -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.