From f0b97a42b059a40ec753094affeccf7dd0b83cfb Mon Sep 17 00:00:00 2001 From: Peter Fabian Date: Fri, 14 Dec 2018 11:57:01 +0100 Subject: [PATCH] Changed data type in schema for dates to date-time. --- .../class-wc-admin-rest-reports-coupons-controller.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-coupons-controller.php b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-coupons-controller.php index 9c4f142b7de..6d4e93f82bf 100644 --- a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-coupons-controller.php +++ b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-coupons-controller.php @@ -175,25 +175,25 @@ class WC_Admin_REST_Reports_Coupons_Controller extends WC_REST_Reports_Controlle 'description' => __( 'Coupon code.', 'wc-admin' ), ), 'date_created' => array( - 'type' => 'string', + 'type' => 'date-time', 'readonly' => true, 'context' => array( 'view', 'edit' ), 'description' => __( 'Coupon creation date.', 'wc-admin' ), ), 'date_created_gmt' => array( - 'type' => 'string', + 'type' => 'date-time', 'readonly' => true, 'context' => array( 'view', 'edit' ), 'description' => __( 'Coupon creation date in GMT.', 'wc-admin' ), ), 'date_expires' => array( - 'type' => 'string', + 'type' => 'date-time', 'readonly' => true, 'context' => array( 'view', 'edit' ), 'description' => __( 'Coupon expiration date.', 'wc-admin' ), ), 'date_expires_gmt' => array( - 'type' => 'string', + 'type' => 'date-time', 'readonly' => true, 'context' => array( 'view', 'edit' ), 'description' => __( 'Coupon expiration date in GMT.', 'wc-admin' ),