CC-2991: Repeating a show is broken
-working
This commit is contained in:
parent
04b88d4344
commit
08b97c4583
1 changed files with 8 additions and 6 deletions
|
@ -940,6 +940,7 @@ class Application_Model_Show {
|
||||||
$duration = $p_showRow["duration"];
|
$duration = $p_showRow["duration"];
|
||||||
$day = $p_showRow["day"];
|
$day = $p_showRow["day"];
|
||||||
$record = $p_showRow["record"];
|
$record = $p_showRow["record"];
|
||||||
|
$timezone = $p_showRow["timezone"];
|
||||||
|
|
||||||
$start = $first_show." ".$start_time;
|
$start = $first_show." ".$start_time;
|
||||||
|
|
||||||
|
@ -1023,13 +1024,14 @@ class Application_Model_Show {
|
||||||
|
|
||||||
|
|
||||||
if(isset($next_pop_date)) {
|
if(isset($next_pop_date)) {
|
||||||
$utcStart = $next_pop_date." ".$start_time;
|
$start = $next_pop_date." ".$start_time;
|
||||||
} else {
|
} else {
|
||||||
$start = $first_show." ".$start_time;
|
$start = $first_show." ".$start_time;
|
||||||
$utcStartDateTime = Application_Model_DateHelper::ConvertToUtcDateTime($start, $timezone);
|
|
||||||
$utcStart = $utcStartDateTime->format("Y-m-d H:i:s");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$utcStartDateTime = Application_Model_DateHelper::ConvertToUtcDateTime($start, $timezone);
|
||||||
|
$utcStart = $utcStartDateTime->format("Y-m-d H:i:s");
|
||||||
|
|
||||||
$sql = "SELECT * FROM cc_show_rebroadcast WHERE show_id={$show_id}";
|
$sql = "SELECT * FROM cc_show_rebroadcast WHERE show_id={$show_id}";
|
||||||
$rebroadcasts = $CC_DBC->GetAll($sql);
|
$rebroadcasts = $CC_DBC->GetAll($sql);
|
||||||
$show = new Application_Model_Show($show_id);
|
$show = new Application_Model_Show($show_id);
|
||||||
|
@ -1092,11 +1094,11 @@ class Application_Model_Show {
|
||||||
|
|
||||||
$sql = "SELECT timestamp '{$start}' + interval '{$interval}'";
|
$sql = "SELECT timestamp '{$start}' + interval '{$interval}'";
|
||||||
$start = $CC_DBC->GetOne($sql);
|
$start = $CC_DBC->GetOne($sql);
|
||||||
$utcStartDateTime = Application_Model_DateHelper::ConvertToUtcDateTime($start, $timezone);
|
$utcStartDateTime = Application_Model_DateHelper::ConvertToUtcDateTime($start, $timezone);
|
||||||
$utcStart = $utcStartDateTime->format("Y-m-d H:i:s");
|
$utcStart = $utcStartDateTime->format("Y-m-d H:i:s");
|
||||||
}
|
}
|
||||||
|
|
||||||
Application_Model_Show::setNextPop($utcStart, $show_id, $day);
|
Application_Model_Show::setNextPop($start, $show_id, $day);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue