From 3cdc808d6c3381bacad86e43ae1340b9cc3e6904 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 3 Aug 2011 14:42:34 -0400 Subject: [PATCH] CC-2626: long numbers after the dot should be truncated - fixed --- airtime_mvc/application/controllers/ScheduleController.php | 5 +++++ 1 file changed, 5 insertions(+) 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));