diff --git a/src/StoreApi/Schemas/ProductReviewSchema.php b/src/StoreApi/Schemas/ProductReviewSchema.php index f85782a922f..70023d78fe7 100644 --- a/src/StoreApi/Schemas/ProductReviewSchema.php +++ b/src/StoreApi/Schemas/ProductReviewSchema.php @@ -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, ], @@ -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, ],