CC-5251 : clrf

This commit is contained in:
Naomi Aro 2013-06-24 11:15:09 -04:00
parent a680421281
commit 3858371b16
2 changed files with 7 additions and 7 deletions

View file

@ -201,8 +201,8 @@ class Application_Model_Scheduler
$data = $this->fileInfo; $data = $this->fileInfo;
$data["id"] = $id; $data["id"] = $id;
$cuein = Application_Common_DateHelper::playlistTimeToSeconds($file->getDbCuein()); $cuein = Application_Common_DateHelper::playlistTimeToSeconds($file->getDbCuein());
$cueout = Application_Common_DateHelper::playlistTimeToSeconds($file->getDbCueout()); $cueout = Application_Common_DateHelper::playlistTimeToSeconds($file->getDbCueout());
$row_length = Application_Common_DateHelper::secondsToPlaylistTime($cueout - $cuein); $row_length = Application_Common_DateHelper::secondsToPlaylistTime($cueout - $cuein);
$data["cliplength"] = $row_length; $data["cliplength"] = $row_length;

View file

@ -780,10 +780,10 @@ SQL;
if ($row['ftype'] === "audioclip") { if ($row['ftype'] === "audioclip") {
$cuein_formatter = new LengthFormatter($row["cuein"]); $cuein_formatter = new LengthFormatter($row["cuein"]);
$row["cuein"] = $cuein_formatter->format(); $row["cuein"] = $cuein_formatter->format();
$cueout_formatter = new LengthFormatter($row["cueout"]); $cueout_formatter = new LengthFormatter($row["cueout"]);
$row["cueout"] = $cueout_formatter->format(); $row["cueout"] = $cueout_formatter->format();
$cuein = Application_Common_DateHelper::playlistTimeToSeconds($row["cuein"]); $cuein = Application_Common_DateHelper::playlistTimeToSeconds($row["cuein"]);
@ -810,7 +810,7 @@ SQL;
$row_length = $row['length']; $row_length = $row['length'];
} }
$len_formatter = new LengthFormatter($row_length); $len_formatter = new LengthFormatter($row_length);
$row['length'] = $len_formatter->format(); $row['length'] = $len_formatter->format();
//convert mtime and utime to localtime //convert mtime and utime to localtime