* CalDAV/InfoLog: do not export stardate > duedate, as some clients (eg. CalDAV Sync for Android) have problems with it

This commit is contained in:
Ralf Becker 2016-06-23 16:05:18 +02:00
parent 6600ca915a
commit 4d5daa4d3f

View File

@ -315,7 +315,8 @@ class infolog_ical extends infolog_bo
$vevent->setAttribute($field, $value, $options);
}
if ($taskData['info_startdate'])
// only export startdate < duedate, as some clients (eg. CalDAV Sync for Android) have problems with that
if ($taskData['info_startdate'] && (empty($taskData['info_enddate']) || $taskData['info_startdate'] <= $taskData['info_enddate']))
{
self::setDateOrTime($vevent, 'DTSTART', $taskData['info_startdate'], $tzid);
}