CC-5627: Check all Application_Common_DateHelper calculations that use
timezone. * Use the user timezone in eventFeedAction(), will fix a bug where shows at the edge of a week can disappear from the calendar if the user timezone is not the same as the station timezone.
This commit is contained in:
parent
27f0fa27e9
commit
1577b7c41e
1 changed files with 4 additions and 2 deletions
|
@ -116,9 +116,11 @@ class ScheduleController extends Zend_Controller_Action
|
|||
$service_user = new Application_Service_UserService();
|
||||
$currentUser = $service_user->getCurrentUser();
|
||||
|
||||
$start = new DateTime($this->_getParam('start', null));
|
||||
$userTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone());
|
||||
|
||||
$start = new DateTime($this->_getParam('start', null), $userTimezone);
|
||||
$start->setTimezone(new DateTimeZone("UTC"));
|
||||
$end = new DateTime($this->_getParam('end', null));
|
||||
$end = new DateTime($this->_getParam('end', null), $userTimezone);
|
||||
$end->setTimezone(new DateTimeZone("UTC"));
|
||||
|
||||
$events = &Application_Model_Show::getFullCalendarEvents($start, $end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue