diff --git a/airtime_mvc/application/controllers/ScheduleController.php b/airtime_mvc/application/controllers/ScheduleController.php index f9316b20e..953cfee52 100644 --- a/airtime_mvc/application/controllers/ScheduleController.php +++ b/airtime_mvc/application/controllers/ScheduleController.php @@ -285,6 +285,11 @@ class ScheduleController extends Zend_Controller_Action $show = new ShowInstance($this->sched_sess->showInstanceId); $playlists = $show->searchPlaylistsForShow($post); + foreach( $playlists['aaData'] as &$data){ + // calling two functions to format time to 1 decimal place + $sec = Playlist::playlistTimeToSeconds($data[4]); + $data[4] = Playlist::secondsToPlaylistTime($sec); + } //for datatables die(json_encode($playlists));