Language depending dates

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-10-31 15:08:30 +01:00 committed by Georg Ehrke
parent cf04093fa6
commit b14b933062
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
1 changed files with 2 additions and 5 deletions

View File

@ -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;