Skip to content
Snippets Groups Projects
Commit d6cca61c authored by Owen Bush's avatar Owen Bush Committed by Owen Bush
Browse files

Issue #3133080 by owenbush, the_glitch: Time zone in Instance's Registrations...

Issue #3133080 by owenbush, the_glitch: Time zone in Instance's Registrations tab not match time zone of event
parent 44b6b40f
No related branches found
No related tags found
No related merge requests found
...@@ -126,9 +126,10 @@ function recurring_events_views_views_pre_render(ViewExecutable $view) { ...@@ -126,9 +126,10 @@ function recurring_events_views_views_pre_render(ViewExecutable $view) {
$name = $eventinstance->title->value; $name = $eventinstance->title->value;
switch ($service->getRegistrationType()) { switch ($service->getRegistrationType()) {
case 'instance': case 'instance':
$timezone = new \DateTimeZone(date_default_timezone_get());
$title = t('Registrations for %name on %date', [ $title = t('Registrations for %name on %date', [
'%name' => $name, '%name' => $name,
'%date' => $eventinstance->date->start_date->format($format), '%date' => $eventinstance->date->start_date->setTimezone($timezone)->format($format),
]); ]);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment