Skip to content

Commit

Permalink
Language depending dates
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 31, 2017
1 parent c9d73bd commit 304b07f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,8 @@ public function schedule(Message $iTipMessage) {
$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;

Expand Down

0 comments on commit 304b07f

Please sign in to comment.