Skip to content

Commit 6bab6aa

Browse files
authored
Merge pull request #19310 from nextcloud/backport/19219/stable16
[stable16] Fix display of DTEND for multi-day all-day event
2 parents fdfb80c + ef28c88 commit 6bab6aa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/dav/lib/CalDAV/Schedule/IMipPlugin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@ private function generateWhenString(IL10N $l10n, Property $dtstart, Property $dt
371371
return $l10n->l('date', $dtstartDt, ['width' => 'medium']);
372372
}
373373

374+
// DTEND is exclusive, so if the ics data says 2020-01-01 to 2020-01-05,
375+
// the email should show 2020-01-01 to 2020-01-04.
376+
$dtendDt->modify('-1 day');
377+
374378
//event that spans over multiple days
375379
$localeStart = $l10n->l('date', $dtstartDt, ['width' => 'medium']);
376380
$localeEnd = $l10n->l('date', $dtendDt, ['width' => 'medium']);

0 commit comments

Comments
 (0)