Changed data type in schema for dates to date-time.
This commit is contained in:
parent
db8004aaf7
commit
f0b97a42b0
|
@ -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' ),
|
||||
|
|
Loading…
Reference in New Issue