[REST API] date_paid should be in date time format, closes #13255

This commit is contained in:
Claudio Sanches 2017-03-02 15:25:32 -03:00
parent c76c2d1a8d
commit 9fb2ba7783
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class WC_REST_Orders_V1_Controller extends WC_REST_Posts_Controller {
'created_via' => $order->get_created_via(), 'created_via' => $order->get_created_via(),
'customer_note' => $order->get_customer_note(), 'customer_note' => $order->get_customer_note(),
'date_completed' => wc_rest_prepare_date_response( $order->get_date_completed() ), '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(), 'cart_hash' => $order->get_cart_hash(),
'line_items' => array(), 'line_items' => array(),
'tax_lines' => array(), 'tax_lines' => array(),