Changed data type in schema for dates to date-time.

This commit is contained in:
Peter Fabian 2018-12-14 11:57:01 +01:00 committed by Joshua Flowers
parent db8004aaf7
commit f0b97a42b0
1 changed files with 4 additions and 4 deletions

View File

@ -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' ),