From 668fe934bd75bfd402edb2b284e94abefb199b91 Mon Sep 17 00:00:00 2001 From: Robert Rollins Date: Mon, 14 Apr 2014 15:00:13 -0700 Subject: [PATCH] Fixed a bug in the Feeds Parser which could break certain all day events. All day events which start on the last day of a month and don't have an end date specified were broken, due to a silly mistake I made in the DTEND emulation. --- libraries/ParserVcalendar.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/ParserVcalendar.inc b/libraries/ParserVcalendar.inc index 7daedce..86410a3 100644 --- a/libraries/ParserVcalendar.inc +++ b/libraries/ParserVcalendar.inc @@ -206,7 +206,7 @@ class ParserVcalendar { // If this is an all-day event with no end or duration, treat this // as a single-day event by emulating DTEND as 1 day after DTSTART. $property = $dtstart; - $property['value']['day'] = $dtstart['value']['day'] + 1; + $property['value'] = iCalUtilityFunctions::_duration2date($property['value'], array('day' => 1)); } else { // This event has no end date. -- GitLab