CC-2626: long numbers after the dot should be truncated

- fixed
This commit is contained in:
James 2011-08-03 14:42:34 -04:00
parent dfb7ca69f6
commit 5124fa67d3

View file

@ -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));