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(); $time = $this->_showInstance->getDbTimeFilled();
if (is_null($time)) { if ($time != "00:00:00") {
$time = "00:00:00"; $milliseconds = substr(round(substr($time, 8), 2), 1);
} $time = substr($time, 0, 8) . $milliseconds;
else { } else {
$formatter = new LengthFormatter($time); $time = "00:00:00.00";
$time = $formatter->format();
} }
return $time; return $time;