Fix fatal error in _to_ical() (#5177)
This commit is contained in:
parent
8c2aac3362
commit
90ad98cda7
1 changed files with 1 additions and 1 deletions
|
@ -990,7 +990,7 @@ class libvcalendar implements Iterator
|
|||
|
||||
// set DTSTAMP according to RFC 5545, 3.8.7.2.
|
||||
$dtstamp = !empty($event['changed']) && !empty($this->method) ? $event['changed'] : new DateTime('now', new \DateTimeZone('UTC'));
|
||||
$ve->DTSTAMP = $dtstamp;
|
||||
$ve->add($this->datetime_prop($cal, 'DTSTAMP', $dtstamp, true));
|
||||
|
||||
// all-day events end the next day
|
||||
if ($event['allday'] && !empty($event['end'])) {
|
||||
|
|
Loading…
Add table
Reference in a new issue