diff --git a/airtime_mvc/application/models/Scheduler.php b/airtime_mvc/application/models/Scheduler.php index 299b78073..661df065b 100644 --- a/airtime_mvc/application/models/Scheduler.php +++ b/airtime_mvc/application/models/Scheduler.php @@ -201,8 +201,8 @@ class Application_Model_Scheduler $data = $this->fileInfo; $data["id"] = $id; - $cuein = Application_Common_DateHelper::playlistTimeToSeconds($file->getDbCuein()); - $cueout = Application_Common_DateHelper::playlistTimeToSeconds($file->getDbCueout()); + $cuein = Application_Common_DateHelper::playlistTimeToSeconds($file->getDbCuein()); + $cueout = Application_Common_DateHelper::playlistTimeToSeconds($file->getDbCueout()); $row_length = Application_Common_DateHelper::secondsToPlaylistTime($cueout - $cuein); $data["cliplength"] = $row_length; diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index cce04794d..9640c36bc 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -780,10 +780,10 @@ SQL; if ($row['ftype'] === "audioclip") { - $cuein_formatter = new LengthFormatter($row["cuein"]); - $row["cuein"] = $cuein_formatter->format(); - - $cueout_formatter = new LengthFormatter($row["cueout"]); + $cuein_formatter = new LengthFormatter($row["cuein"]); + $row["cuein"] = $cuein_formatter->format(); + + $cueout_formatter = new LengthFormatter($row["cueout"]); $row["cueout"] = $cueout_formatter->format(); $cuein = Application_Common_DateHelper::playlistTimeToSeconds($row["cuein"]); @@ -810,7 +810,7 @@ SQL; $row_length = $row['length']; } - $len_formatter = new LengthFormatter($row_length); + $len_formatter = new LengthFormatter($row_length); $row['length'] = $len_formatter->format(); //convert mtime and utime to localtime