Commit 668fe934 authored by Robert Rollins's avatar Robert Rollins
Browse files

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
parent a725a3c1
......@@ -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.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment