T1385: Fix importing events with no DTEND and no DURATION
Per RFC5545 3.6.1 it is perfectly valid. In such cases DTEND should set to DTSTART.
This commit is contained in:
parent
2056b92c39
commit
daefd52a92
1 changed files with 2 additions and 2 deletions
|
@ -591,8 +591,8 @@ class libvcalendar implements Iterator
|
||||||
$event['allday'] = true;
|
$event['allday'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// all-day events may lack the DTEND property
|
// events may lack the DTEND property, set it to DTSTART (RFC5545 3.6.1)
|
||||||
if ($event['allday'] && empty($event['end'])) {
|
if (empty($event['end'])) {
|
||||||
$event['end'] = clone $event['start'];
|
$event['end'] = clone $event['start'];
|
||||||
}
|
}
|
||||||
// shift end-date by one day (except Thunderbird)
|
// shift end-date by one day (except Thunderbird)
|
||||||
|
|
Loading…
Add table
Reference in a new issue