[REST API] date_paid should be in date time format, closes #13255
This commit is contained in:
parent
c76c2d1a8d
commit
9fb2ba7783
|
@ -159,7 +159,7 @@ class WC_REST_Orders_V1_Controller extends WC_REST_Posts_Controller {
|
|||
'created_via' => $order->get_created_via(),
|
||||
'customer_note' => $order->get_customer_note(),
|
||||
'date_completed' => wc_rest_prepare_date_response( $order->get_date_completed() ),
|
||||
'date_paid' => $order->get_date_paid(),
|
||||
'date_paid' => wc_rest_prepare_date_response( $order->get_date_paid() ),
|
||||
'cart_hash' => $order->get_cart_hash(),
|
||||
'line_items' => array(),
|
||||
'tax_lines' => array(),
|
||||
|
|
Loading…
Reference in New Issue