ActionScheduler_DateTime::setTimezone()publicWC 1.0ReturnTypeWillChange

Set the TimeZone associated with the DateTime

Method of the class: ActionScheduler_DateTime{}

No Hooks.

Return

static.

Usage

$ActionScheduler_DateTime = new ActionScheduler_DateTime();
$ActionScheduler_DateTime->setTimezone( $timezone );
$timezone(DateTimeZone) (required)
-

ActionScheduler_DateTime::setTimezone() code WC 8.6.1

public function setTimezone( $timezone ) {
	$this->utcOffset = 0;
	parent::setTimezone( $timezone );

	return $this;
}