Merge branch '2.4.x' into ryerson-history
This commit is contained in:
commit
0d089b787d
2 changed files with 43 additions and 41 deletions
|
@ -14,7 +14,8 @@ class Application_Common_Timezone
|
|||
'Australia' => DateTimeZone::AUSTRALIA,
|
||||
'Europe' => DateTimeZone::EUROPE,
|
||||
'Indian' => DateTimeZone::INDIAN,
|
||||
'Pacific' => DateTimeZone::PACIFIC
|
||||
'Pacific' => DateTimeZone::PACIFIC,
|
||||
'UTC' => DateTimeZone::UTC
|
||||
);
|
||||
|
||||
$tzlist = array();
|
||||
|
|
|
@ -964,8 +964,9 @@ SQL;
|
|||
*/
|
||||
if (isset($lastCreatedShow)) {
|
||||
/* Set UTC to local time before setting the next repeat date. If we don't
|
||||
* the next repeat date might be scheduled for the following day */
|
||||
$lastCreatedShow->setTimezone(new DateTimeZone(Application_Model_Preference::GetTimezone()));
|
||||
* the next repeat date might be scheduled for the following day
|
||||
* THIS MUST BE IN THE TIMEZONE THE SHOW WAS CREATED IN */
|
||||
$lastCreatedShow->setTimezone(new DateTimeZone($timezone));
|
||||
$nextDate = $lastCreatedShow->add($repeatInterval);
|
||||
$this->setNextRepeatingShowDate($nextDate->format("Y-m-d"), $day, $show_id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue