From befa7f49136625916e54473e1d4e91b7499d906e Mon Sep 17 00:00:00 2001 From: Georg Ehrke <developer@georgehrke.com> Date: Thu, 30 Jan 2020 15:02:16 +0100 Subject: Fix display of DTEND for multi-day all-day event Signed-off-by: Georg Ehrke <developer@georgehrke.com> --- apps/dav/lib/CalDAV/Schedule/IMipPlugin.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps') diff --git a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php index ef4255b22c0..982c579d3bb 100644 --- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php +++ b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php @@ -440,6 +440,10 @@ class IMipPlugin extends SabreIMipPlugin { return $l10n->l('date', $dtstartDt, ['width' => 'medium']); } + // DTEND is exclusive, so if the ics data says 2020-01-01 to 2020-01-05, + // the email should show 2020-01-01 to 2020-01-04. + $dtendDt->modify('-1 day'); + //event that spans over multiple days $localeStart = $l10n->l('date', $dtstartDt, ['width' => 'medium']); $localeEnd = $l10n->l('date', $dtendDt, ['width' => 'medium']); -- cgit v1.2.3