CC-5594 : Remove all date_default_timezone_get()
using the user selected timezone in the form to calculate duration.
This commit is contained in:
parent
c732b44903
commit
39063aaadb
3 changed files with 22 additions and 11 deletions
|
@ -630,9 +630,12 @@ class ScheduleController extends Zend_Controller_Action
|
|||
|
||||
public function calculateDurationAction()
|
||||
{
|
||||
$start = $this->_getParam('startTime');
|
||||
$end = $this->_getParam('endTime');
|
||||
$timezone = $this->_getParam('timezone');
|
||||
|
||||
$service_showForm = new Application_Service_ShowFormService();
|
||||
$result = $service_showForm->calculateDuration($this->_getParam('startTime'),
|
||||
$this->_getParam('endTime'));
|
||||
$result = $service_showForm->calculateDuration($start, $end, $timezone);
|
||||
|
||||
echo Zend_Json::encode($result);
|
||||
exit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue