You are here

public function DateRecurRRule::adjustDateForDisplay in Recurring Dates Field 8

Parameters

$date:

Return value

\DateTime $date

1 call to DateRecurRRule::adjustDateForDisplay()
DateRecurRRule::massageOccurrence in src/DateRecurRRule.php

File

src/DateRecurRRule.php, line 317

Class

DateRecurRRule

Namespace

Drupal\date_recur

Code

public function adjustDateForDisplay($date) {
  if (empty($this->timezone)) {
    return $date;
  }
  return $date
    ->setTimezone(new \DateTimeZone($this->timezone));
}