CC-3183: recorder shows have extra 1ms which cause the now playing to report the show exceeding its time
Done
This commit is contained in:
parent
0df23305a0
commit
1c9b134748
|
@ -23,8 +23,9 @@ class Application_Model_Nowplaying
|
|||
$showEnds = $showEndDateTime->format("Y-m-d H:i:s");
|
||||
$itemStarts = $itemStartDateTime->format("Y-m-d H:i:s");
|
||||
$itemEnds = $itemEndDateTime->format("Y-m-d H:i:s");
|
||||
|
||||
$status = ($dbRow['show_ends'] < $dbRow['item_ends']) ? "x" : "";
|
||||
|
||||
// Allow show to exceed 1 second per CC-3183
|
||||
$status = ($showEnds < $itemEnds) ? "x" : "";
|
||||
|
||||
$type = "a";
|
||||
$type .= ($itemEndDateTime->getTimestamp() > $epochNow && $itemStartDateTime->getTimestamp() <= $epochNow) ? "c" : "";
|
||||
|
|
Loading…
Reference in New Issue