CC-3336: Refactor schedule API used by pypo

-add comment
This commit is contained in:
Martin Konecny 2012-02-23 11:21:16 -05:00
parent 99c24ed038
commit a53d856e8d
1 changed files with 3 additions and 0 deletions

View File

@ -516,6 +516,9 @@ class Application_Model_Schedule {
$showEndDateTime = new DateTime($item["show_end"], $utcTimeZone);
$trackEndDateTime = new DateTime($item["ends"], $utcTimeZone);
/* Note: cue_out and end are always the same. */
/* TODO: Not all tracks will have "show_end" */
if ($trackEndDateTime->getTimestamp() > $showEndDateTime->getTimestamp()){
$diff = $trackEndDateTime->getTimestamp() - $showEndDateTime->getTimestamp();
//assuming ends takes cue_out into assumption