From 62cd704d1c9ac847fb6f7717928559804743d501 Mon Sep 17 00:00:00 2001 From: denise Date: Thu, 12 Apr 2012 17:12:43 -0400 Subject: [PATCH] --added comment --- airtime_mvc/application/models/ShowInstance.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/ShowInstance.php b/airtime_mvc/application/models/ShowInstance.php index db81782be..7e21d1376 100644 --- a/airtime_mvc/application/models/ShowInstance.php +++ b/airtime_mvc/application/models/ShowInstance.php @@ -610,9 +610,10 @@ class Application_Model_ShowInstance { $interval = $start->diff($end); $days = $interval->format("%d"); $hours = sprintf("%02d" ,$interval->format("%h")); - + if ($days > 0) { $totalHours = $days * 24 + $hours; + //$interval object does not have milliseconds so hard code to .00 $returnStr = $totalHours . ":" . $interval->format("%I:%S") . ".00"; } else { $returnStr = $hours . ":" . $interval->format("%I:%S") . ".00";