summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/dav/lib/CalDAV/Schedule/IMipPlugin.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
index f22fcb8af0e..ae8bf14cd66 100644
--- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
+++ b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
@@ -165,11 +165,8 @@ class IMipPlugin extends SabreIMipPlugin {
$meetingTitle = $vevent->SUMMARY;
$meetingDescription = $vevent->DESCRIPTION;
- // TODO(leon): Maybe it's a good idea to make this locale dependent?
- // TODO(leon): Don't show H:i if it's an all-day meeting
- $dateFormatStr = 'Y-m-d H:i e';
- $meetingStart = $vevent->DTSTART->getDateTime()->format($dateFormatStr);
- $meetingEnd = $vevent->DTEND->getDateTime()->format($dateFormatStr);
+ $meetingStart = $l10n->l('datetime', $vevent->DTSTART->getDateTime()->getTimestamp());
+ $meetingEnd = $l10n->l('datetime', $vevent->DTEND->getDateTime()->getTimestamp());
$meetingUrl = $vevent->URL;