diff options
author | Joas Schilling <coding@schilljs.com> | 2017-10-31 15:08:30 +0100 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2017-11-03 11:20:03 +0100 |
commit | b14b933062d245aa8b6e4d3508cb5bb77fe52321 (patch) | |
tree | 8a0b3b88e160cd348a7b39cf6e653ce77534b759 /apps | |
parent | cf04093fa64bb386279f31f4e50a89e6fc37d41a (diff) | |
download | nextcloud-server-b14b933062d245aa8b6e4d3508cb5bb77fe52321.tar.gz nextcloud-server-b14b933062d245aa8b6e4d3508cb5bb77fe52321.zip |
Language depending dates
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/Schedule/IMipPlugin.php | 7 |
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; |