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

-fixed
This commit is contained in:
denise 2012-04-12 16:25:01 -04:00
parent f522c7a7af
commit fe68d0fc87
3 changed files with 9 additions and 10 deletions

View File

@ -568,12 +568,11 @@ class Application_Model_ShowInstance {
{
$time = $this->_showInstance->getDbTimeFilled();
if (is_null($time)) {
$time = "00:00:00";
}
else {
$formatter = new LengthFormatter($time);
$time = $formatter->format();
if ($time != "00:00:00") {
$milliseconds = substr(round(substr($time, 8), 2), 1);
$time = substr($time, 0, 8) . $milliseconds;
} else {
$time = "00:00:00.00";
}
return $time;