Browse Source

Fix display of DTEND for multi-day all-day event

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
tags/v19.0.0beta1
Georg Ehrke 4 years ago
parent
commit
165fc172b1
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      apps/dav/lib/CalDAV/Schedule/IMipPlugin.php

+ 4
- 0
apps/dav/lib/CalDAV/Schedule/IMipPlugin.php View File

@@ -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']);

Loading…
Cancel
Save