Skip to content

Commit ea6e4cb

Browse files
authored
Merge pull request #19308 from nextcloud/backport/19219/stable18
[stable18] Fix display of DTEND for multi-day all-day event
2 parents 9fd0153 + befa7f4 commit ea6e4cb

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
@@ -440,6 +440,10 @@ private function generateWhenString(IL10N $l10n, Property $dtstart, Property $dt
440440
return $l10n->l('date', $dtstartDt, ['width' => 'medium']);
441441
}
442442

443+
// DTEND is exclusive, so if the ics data says 2020-01-01 to 2020-01-05,
444+
// the email should show 2020-01-01 to 2020-01-04.
445+
$dtendDt->modify('-1 day');
446+
443447
//event that spans over multiple days
444448
$localeStart = $l10n->l('date', $dtstartDt, ['width' => 'medium']);
445449
$localeEnd = $l10n->l('date', $dtendDt, ['width' => 'medium']);

0 commit comments

Comments
 (0)