CC-3359: Now Playing -> Day view has a bug with supporting UTC time
-fixed
This commit is contained in:
parent
02b878561a
commit
4514967ccd
1 changed files with 6 additions and 2 deletions
|
@ -76,9 +76,12 @@ class Application_Model_Nowplaying
|
||||||
$startCutoff = 60;
|
$startCutoff = 60;
|
||||||
$endCutoff = 86400; //60*60*24 - seconds in a day
|
$endCutoff = 86400; //60*60*24 - seconds in a day
|
||||||
} else {
|
} else {
|
||||||
|
$time = date("H:i:s");
|
||||||
|
$utcDate = Application_Model_DateHelper::ConvertToUtcDateTimeString($dateString." ".$time);
|
||||||
|
|
||||||
$date = new Application_Model_DateHelper;
|
$date = new Application_Model_DateHelper;
|
||||||
$time = $date->getTime();
|
$date->setDate($utcDate);
|
||||||
$date->setDate($dateString." ".$time);
|
|
||||||
$timeNow = $date->getUtcTimestamp();
|
$timeNow = $date->getUtcTimestamp();
|
||||||
|
|
||||||
$startCutoff = $date->getNowDayStartDiff();
|
$startCutoff = $date->getNowDayStartDiff();
|
||||||
|
@ -89,6 +92,7 @@ class Application_Model_Nowplaying
|
||||||
|
|
||||||
$showIds = Application_Model_ShowInstance::GetShowsInstancesIdsInRange($timeNow, $startCutoff, $endCutoff);
|
$showIds = Application_Model_ShowInstance::GetShowsInstancesIdsInRange($timeNow, $startCutoff, $endCutoff);
|
||||||
|
|
||||||
|
|
||||||
//get all the pieces to be played between the start cut off and the end cut off.
|
//get all the pieces to be played between the start cut off and the end cut off.
|
||||||
$scheduledItems = Application_Model_Schedule::getScheduleItemsInRange($timeNow, $startCutoff, $endCutoff);
|
$scheduledItems = Application_Model_Schedule::getScheduleItemsInRange($timeNow, $startCutoff, $endCutoff);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue