CC-3498: Calendar -> Show Content better representation of duration needed
-fixed
This commit is contained in:
parent
f522c7a7af
commit
fe68d0fc87
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue