diff options
author | Georg Ehrke <developer@georgehrke.com> | 2020-01-30 15:02:16 +0100 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2020-01-30 15:02:16 +0100 |
commit | 165fc172b11adbd7b3c4537745f0ab08fdee7410 (patch) | |
tree | 3604e640df74dda5b68defacf9856d832c30fa55 | |
parent | 9ed106f69acaf419414dccfcfd7efa6de22aa45a (diff) | |
download | nextcloud-server-165fc172b11adbd7b3c4537745f0ab08fdee7410.tar.gz nextcloud-server-165fc172b11adbd7b3c4537745f0ab08fdee7410.zip |
Fix display of DTEND for multi-day all-day event
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
-rw-r--r-- | apps/dav/lib/CalDAV/Schedule/IMipPlugin.php | 4 |
1 files changed, 4 insertions, 0 deletions
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']); |