Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Fix product reviews schema date fields to use new (WP 5.5) date-time format #3109

Merged
merged 2 commits into from Sep 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/StoreApi/Schemas/ProductReviewSchema.php
Expand Up @@ -51,7 +51,8 @@ public function get_properties() {
],
'date_created' => [
'description' => __( "The date the review was created, in the site's timezone.", 'woo-gutenberg-products-block' ),
'type' => 'date-time',
'type' => 'string',
'format' => 'date-time',
'context' => [ 'view', 'edit' ],
'readonly' => true,
],
Expand All @@ -63,7 +64,8 @@ public function get_properties() {
],
'date_created_gmt' => [
'description' => __( 'The date the review was created, as GMT.', 'woo-gutenberg-products-block' ),
'type' => 'date-time',
'type' => 'string',
'format' => 'date-time',
'context' => [ 'view', 'edit' ],
'readonly' => true,
],
Expand Down