public function DateRecurRRule::adjustDateForDisplay in Recurring Dates Field 8
Parameters
$date:
Return value
\DateTime $date
1 call to DateRecurRRule::adjustDateForDisplay()
File
- src/
DateRecurRRule.php, line 317
Class
Namespace
Drupal\date_recurCode
public function adjustDateForDisplay($date) {
if (empty($this->timezone)) {
return $date;
}
return $date
->setTimezone(new \DateTimeZone($this->timezone));
}