Always add mandatory DTSTAMP value for VEVENT components

This commit is contained in:
Thomas Bruederli 2013-09-25 18:40:49 +02:00
parent a7d38bdf27
commit 3787ac1bec

View file

@ -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'])) {