CC-5323: User's Timezone Can Improperly Edit Show
-made localizeDate a static function in ShowFormService
This commit is contained in:
parent
8ddb2974f1
commit
6aa6d576cd
2 changed files with 6 additions and 10 deletions
|
@ -489,13 +489,14 @@ class Application_Service_ShowFormService
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Enter description here ...
|
||||
* When the timezone is changed in add-show form this function
|
||||
* applies the new timezone to the start and end time
|
||||
*
|
||||
* @param $date String
|
||||
* @param $time String
|
||||
* @param $timezone String
|
||||
*/
|
||||
public function localizeDateTime($date, $time, $newTimezone, $oldTimezone)
|
||||
public static function localizeDateTime($date, $time, $newTimezone, $oldTimezone)
|
||||
{
|
||||
$dt = new DateTime($date." ".$time, new DateTimeZone($oldTimezone));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue