CC-5719: Incorrect show content start time
The show content was getting recalculated twice sometimes. So if the difference between the original and now show start date-time and was 2 hours, the scheduled content would have a difference of 4 hours
This commit is contained in:
parent
b433a529ab
commit
7660e0cd84
2 changed files with 12 additions and 17 deletions
|
@ -534,12 +534,11 @@ SQL;
|
|||
//check if this is null if "no end"
|
||||
$currentShowEndDateTime = $this->getRepeatingEndDate();
|
||||
|
||||
if ($currentShowEndDateTime != $endDateTime) {
|
||||
|
||||
if ($endDateTime && $currentShowEndDateTime != $endDateTime) {
|
||||
$endDate = clone $endDateTime;
|
||||
$endDate->setTimezone(new DateTimeZone("UTC"));
|
||||
|
||||
//show "No End" option was toggled
|
||||
//show's "No End" option was toggled
|
||||
//or the end date comes earlier
|
||||
if (is_null($currentShowEndDateTime) || ($endDateTime < $currentShowEndDateTime)) {
|
||||
//"No End" option was unchecked so we need to delete the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue