CC-3498: Calendar -> Show Content better representation of duration needed

-fixed
This commit is contained in:
denise 2012-04-16 17:09:54 -04:00
parent 2f4861db26
commit 2fc591db2b
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";
}