CC-5074: Editing a linked instance sets incorrect schedule start times
This commit is contained in:
parent
1384c5d39d
commit
4ca60ca676
4 changed files with 21 additions and 13 deletions
|
@ -634,10 +634,7 @@ class Application_Model_Scheduler
|
|||
$pstart = microtime(true);
|
||||
|
||||
//recalculate the start/end times after the inserted items.
|
||||
Logging::info($excludeIds);
|
||||
Logging::info($initalStartDT);
|
||||
foreach ($followingSchedItems as $item) {
|
||||
Logging::info($item);
|
||||
$endTimeDT = $this->findEndTime($nextStartDT, $item->getDbClipLength());
|
||||
|
||||
$item->setDbStarts($nextStartDT);
|
||||
|
|
|
@ -185,4 +185,10 @@ class CcShowInstances extends BaseCcShowInstances {
|
|||
return $this->getDbRebroadcast() == 1 ? true : false;
|
||||
}
|
||||
|
||||
public function getLocalStartDateTime()
|
||||
{
|
||||
$startDT = $this->getDbStarts(null);
|
||||
return $startDT->setTimezone(new DateTimeZone(Application_Model_Preference::GetTimezone()));
|
||||
}
|
||||
|
||||
} // CcShowInstances
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue