Always add mandatory DTSTAMP value for VEVENT components
This commit is contained in:
parent
a7d38bdf27
commit
3787ac1bec
1 changed files with 1 additions and 0 deletions
|
@ -665,6 +665,7 @@ class libvcalendar
|
|||
$type = $event['_type'] ?: 'event';
|
||||
$ve = VObject\Component::create($this->type_component_map[$type]);
|
||||
$ve->add('UID', $event['uid']);
|
||||
$ve->add(self::datetime_prop('DTSTAMP', new DateTime(), true));
|
||||
|
||||
// all-day events end the next day
|
||||
if ($event['allday'] && !empty($event['end'])) {
|
||||
|
|
Loading…
Add table
Reference in a new issue