mirror of
https://github.com/friendica/friendica
synced 2024-12-23 10:00:20 +00:00
Add timezone to event dates format in Model\Event::getHTML
- Adds timezone information for user-less contexts like syndication feeds
This commit is contained in:
parent
40aaa51050
commit
d1417d74bc
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue