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:
parent
7276d3d895
commit
a2fedaa3f1
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue