Automattic\WooCommerce\Admin\Features\Fulfillments
Fulfillment::set_date_updated
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.
Метод класса: Fulfillment{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Fulfillment = new Fulfillment(); $Fulfillment->set_date_updated( ?string $date_updated ): void;
- ?string $date_updated(обязательный)
- .
Список изменений
| С версии 10.1.0 | Введена. |
| С версии 10.8.0 | Input is normalized to UTC before storage. |
Код Fulfillment::set_date_updated() Fulfillment::set date updated WC 11.3.0
public function set_date_updated( ?string $date_updated ): void {
$this->set_prop( 'date_updated', $this->normalize_date_to_utc( $date_updated ) );
}