ActionScheduler_DateTime::setTimezone()publicWC 1.0ReturnTypeWillChange

Set the TimeZone associated with the DateTime

Method of the class: ActionScheduler_DateTime{}

No Hooks.

Returns

static.

Usage

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

ActionScheduler_DateTime::setTimezone() code WC 9.8.5

public function setTimezone( $timezone ) {
	$this->utcOffset = 0; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
	parent::setTimezone( $timezone );

	return $this;
}