CC-4819: Tracks length in Scheduler is 0.0 all the time
- fixed
This commit is contained in:
parent
20f7544552
commit
3a72302a3c
|
@ -269,7 +269,12 @@ class Application_Model_ShowBuilder
|
|||
|
||||
$cue_out = Application_Common_DateHelper::calculateLengthInSeconds($p_item['cue_out']);
|
||||
$cue_in = Application_Common_DateHelper::calculateLengthInSeconds($p_item['cue_in']);
|
||||
$run_time = $cue_out-$cue_in;
|
||||
|
||||
if ($cue_out == 0 && $cue_in == 0) {
|
||||
$run_time = Application_Common_DateHelper::calculateLengthInSeconds($p_item['file_length']);
|
||||
} else {
|
||||
$run_time = $cue_out-$cue_in;
|
||||
}
|
||||
|
||||
$formatter = new LengthFormatter(Application_Common_DateHelper::ConvertMSToHHMMSSmm($run_time*1000));
|
||||
$row['runtime'] = $formatter->format();
|
||||
|
|
Loading…
Reference in New Issue