From b14b933062d245aa8b6e4d3508cb5bb77fe52321 Mon Sep 17 00:00:00 2001
From: Joas Schilling <coding@schilljs.com>
Date: Tue, 31 Oct 2017 15:08:30 +0100
Subject: [PATCH] Language depending dates

Signed-off-by: Joas Schilling <coding@schilljs.com>
---
 apps/dav/lib/CalDAV/Schedule/IMipPlugin.php | 7 ++-----
 1 file 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;
 
-- 
GitLab