From d1417d74bc39013a4ad15fa7465f3ec10fcf547e Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 23 Oct 2021 00:19:40 -0400 Subject: [PATCH] Add timezone to event dates format in Model\Event::getHTML - Adds timezone information for user-less contexts like syndication feeds --- src/Model/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));