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

Remove calls to drupal_get_user_timezone() in recurring_events_registration submodule

parent 678ee3b5
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ class RegistrantListBuilder extends EntityListBuilder { ...@@ -113,7 +113,7 @@ class RegistrantListBuilder extends EntityListBuilder {
$row['id'] = $entity->id(); $row['id'] = $entity->id();
$row['series'] = $series->toLink($series->title->value); $row['series'] = $series->toLink($series->title->value);
$timezone = new \DateTimeZone(drupal_get_user_timezone()); $timezone = new \DateTimeZone(date_default_timezone_get());
$date = $instance->date->start_date; $date = $instance->date->start_date;
$date->setTimezone($timezone); $date->setTimezone($timezone);
$row['instance'] = $instance->toLink($date->format($this->config->get('recurring_events_registration.registrant.config')->get('date_format'))); $row['instance'] = $instance->toLink($date->format($this->config->get('recurring_events_registration.registrant.config')->get('date_format')));
......
...@@ -431,7 +431,7 @@ class RegistrationCreationService { ...@@ -431,7 +431,7 @@ class RegistrationCreationService {
$reg_type = $this->getRegistrationType(); $reg_type = $this->getRegistrationType();
$reg_dates_type = $this->getRegistrationDatesType(); $reg_dates_type = $this->getRegistrationDatesType();
$timezone = new \DateTimeZone(drupal_get_user_timezone()); $timezone = new \DateTimeZone(date_default_timezone_get());
$utc_timezone = new \DateTimeZone(DateTimeItemInterface::STORAGE_TIMEZONE); $utc_timezone = new \DateTimeZone(DateTimeItemInterface::STORAGE_TIMEZONE);
$now = new DrupalDateTime(); $now = new DrupalDateTime();
......
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