Merge pull request #10917 from MrPetovan/bug/10914-event-feed-time
Add event timezone in Model\Event::getHTML
This commit is contained in:
commit
5dc283ba8d
3 changed files with 15 additions and 10 deletions
|
@ -631,7 +631,9 @@ class App
|
|||
Model\Profile::openWebAuthInit($token);
|
||||
}
|
||||
|
||||
$auth->withSession($this);
|
||||
if (!$this->mode->isBackend()) {
|
||||
$auth->withSession($this);
|
||||
}
|
||||
|
||||
if (empty($_SESSION['authenticated'])) {
|
||||
header('X-Account-Management-Status: none');
|
||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue