Merge branch 'devel' of dev.sourcefabric.org:airtime into devel

This commit is contained in:
James 2012-04-16 17:29:18 -04:00
commit da691dcfb7
1 changed files with 4 additions and 2 deletions

View File

@ -569,8 +569,10 @@ class Application_Model_ShowInstance {
$time = $this->_showInstance->getDbTimeFilled();
if ($time != "00:00:00") {
$milliseconds = substr(round(substr($time, 8), 2), 1);
$time = substr($time, 0, 8) . $milliseconds;
$time_arr = explode(".", $time);
$time_arr[1] = "." . $time_arr[1];
$milliseconds = number_format(round($time_arr[1], 2), 2);
$time = $time_arr[0] . substr($milliseconds, 1);
} else {
$time = "00:00:00.00";
}