public function CalendarEvent::setTimezone in Calendar 8.2
Same name and namespace in other branches
- 8 src/CalendarEvent.php \Drupal\calendar\CalendarEvent::setTimezone()
Setter for the timezone property.
Parameters
\DateTimeZone $timezone: The timezone of this event.
File
- src/
CalendarEvent.php, line 403
Class
- CalendarEvent
- Defines a calendar event object.
Namespace
Drupal\calendarCode
public function setTimezone($timezone) {
$this->timezone = $timezone;
}