CC-3621: Calendar -> show contents (for a 24 hours show): It display "0:00:00" as total time of 24 hours show

-fixed
This commit is contained in:
denise 2012-04-12 13:36:45 -04:00
parent 7276d3d895
commit a2fedaa3f1
1 changed files with 4 additions and 1 deletions

View File

@ -609,7 +609,10 @@ class Application_Model_ShowInstance {
$end = $this->getShowInstanceEnd(null);
$interval = $start->diff($end);
return $interval->format("%h:%I:%S");
$days = $interval->format("%d");
if ($days > 0) return "24:" . $interval->format("%I:%S");
else return $interval->format("%h:%I:%S");
}
public function getShowListContent()