You are here

public function CalendarEvent::setTimezone in Calendar 8

Same name and namespace in other branches
  1. 8.2 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 234

Class

CalendarEvent
Defines a calendar event object.

Namespace

Drupal\calendar

Code

public function setTimezone($timezone) {
  $this->timezone = $timezone;
}