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

@ -567,15 +567,14 @@ class Application_Model_ShowInstance {
public function getTimeScheduled()
{
$time = $this->_showInstance->getDbTimeFilled();
if (is_null($time)) {
$time = "00:00:00";
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";
}
else {
$formatter = new LengthFormatter($time);
$time = $formatter->format();
}
return $time;
}

View File

@ -53,4 +53,4 @@
To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
</div>
</div>
</div>
</div>

View File

@ -645,4 +645,4 @@ a.jp-shuffle-off:hover {
font-weight:bold;
}
/* @end */
/* @end */