T2504: Fix DTSTAMP in iTip replies

It should be set to NOW whenever METHOD is specified.

Conflicts:
	plugins/libcalendaring/libvcalendar.php
This commit is contained in:
Aleksander Machniak 2017-06-29 13:08:35 +00:00
parent 9340dec610
commit 3b855e8559

View file

@ -977,7 +977,7 @@ class libvcalendar implements Iterator
$ve->add('UID', $event['uid']);
// set DTSTAMP according to RFC 5545, 3.8.7.2.
$dtstamp = !empty($event['changed']) && !empty($this->method) ? $event['changed'] : new DateTime();
$dtstamp = !empty($event['changed']) && empty($this->method) ? $event['changed'] : new DateTime();
$ve->add($this->datetime_prop('DTSTAMP', $dtstamp, true));
// all-day events end the next day