From: Hypolite Petovan Date: Sat, 23 Oct 2021 04:19:40 +0000 (-0400) Subject: Add timezone to event dates format in Model\Event::getHTML X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d1417d74bc39013a4ad15fa7465f3ec10fcf547e;p=friendica.git Add timezone to event dates format in Model\Event::getHTML - Adds timezone information for user-less contexts like syndication feeds --- diff --git a/src/Model/Event.php b/src/Model/Event.php index ef2b55b68c..b569624243 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -49,7 +49,7 @@ class Event $uriid = $event['uri-id'] ?? $uriid; - $bd_format = DI::l10n()->t('l F d, Y \@ g:i A'); // Friday January 18, 2011 @ 8 AM. + $bd_format = DI::l10n()->t('l F d, Y \@ g:i A \G\M\TP (e)'); // Friday October 29, 2021 @ 9:15 AM GMT-04:00 (America/New_York) $event_start = DI::l10n()->getDay(DateTimeFormat::local($event['start'], $bd_format));