From 66f15c06c581a517e886c36c62bd9b9b16252bfc Mon Sep 17 00:00:00 2001 From: Ian Date: Wed, 21 Jun 2017 10:00:22 +1200 Subject: [PATCH] Fix issue with Feed Events showing at 12:00 My previous fix treated events as starting at 12:00 to fix filtering. However this had the side effect of showing events at 12:00 too. This commit fixes that oversight. --- code/Calendar.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/Calendar.php b/code/Calendar.php index 75c38a4..3f948c9 100755 --- a/code/Calendar.php +++ b/code/Calendar.php @@ -380,6 +380,9 @@ public function getFeedEvents($start_date, $end_date) { || $startdatetime > $end && $enddatetime > $end) { // do nothing; dates outside range } else { + $startdatetime = $this->iCalDateToDateTime($event['DTSTART']); + $enddatetime = $this->iCalDateToDateTime($event['DTEND']); + $feedevent->StartDate = $startdatetime->format('Y-m-d'); $feedevent->StartTime = $startdatetime->format('H:i:s');