Automattic\WooCommerce\Admin\Features\Fulfillments

Fulfillment::set_date_updatedpublicWC 10.1.0

Set the date updated. Input is normalized to UTC before storage.

Bare MySQL-format strings are interpreted as site-local time (matching the convention of current_time('mysql')). Strings with an explicit timezone designator (Z, +00:00, UTC) are respected.

Method of the class: Fulfillment{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Fulfillment = new Fulfillment();
$Fulfillment->set_date_updated( ?string $date_updated ): void;
?string $date_updated(required)
.

Changelog

Since 10.1.0 Introduced.
Since 10.8.0 Input is normalized to UTC before storage.

Fulfillment::set_date_updated() code WC 10.9.4

public function set_date_updated( ?string $date_updated ): void {
	$this->set_prop( 'date_updated', $this->normalize_date_to_utc( $date_updated ) );
}