From 069119857f0f39d7e5c85a870f7bfe06d092f7c6 Mon Sep 17 00:00:00 2001 From: naomiaro Date: Fri, 17 Dec 2010 01:18:42 -0500 Subject: [PATCH] fixed percent show filled in event display. --- application/models/Shows.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/application/models/Shows.php b/application/models/Shows.php index 62616f7ff..104a4eaa2 100644 --- a/application/models/Shows.php +++ b/application/models/Shows.php @@ -352,21 +352,16 @@ class Show { $sql = "SELECT timestamp '{$start_ts}' > timestamp '{$end_ts}'"; $isNextDay = $CC_DBC->GetOne($sql); - $start = $date."T".$show["start_time"]; - if($isNextDay === 't') { $sql = "SELECT date '{$date}' + interval '1 day {$show["end_time"]}'"; - $end = $CC_DBC->GetOne($sql); - } - else { - $end = $date."T".$show["end_time"]; + $end_ts = $CC_DBC->GetOne($sql); } $event = array( "id" => $show["show_id"], "title" => $show["name"], - "start" => $start, - "end" => $end, + "start" => $start_ts, + "end" => $end_ts, "allDay" => false, "description" => $show["description"] );