WC_DateTime::setTimezone()publicWC 1.0ReturnTypeWillChange

Set timezone.

Method of the class: WC_DateTime{}

No Hooks.

Return

DateTime.

Usage

$WC_DateTime = new WC_DateTime();
$WC_DateTime->setTimezone( $timezone );
$timezone(DateTimeZone) (required)
DateTimeZone instance.

WC_DateTime::setTimezone() code WC 8.9.0

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