]> git.mxchange.org Git - friendica.git/commitdiff
Add timezone to event dates format in Model\Event::getHTML
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Oct 2021 04:19:40 +0000 (00:19 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 25 Oct 2021 03:17:55 +0000 (23:17 -0400)
- Adds timezone information for user-less contexts like syndication feeds

src/Model/Event.php

index ef2b55b68cdc2ae29d4868f21a2d7bbb544cee02..b5696242436757fae49cca86d04e4f665720feab 100644 (file)
@@ -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));