WordPress at Your Fingertips
function is not described

ActionScheduler_DateTime::setTimezone() public WC 1.0

Set the TimeZone associated with the DateTime

{} It's a method of the class: ActionScheduler_DateTime{}

No Hooks.

Return

static.

Usage

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

Code of ActionScheduler_DateTime::setTimezone() WC 6.1.1

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

	return $this;
}