Merge pull request #13032 from woocommerce/fix/order-date-direct-access

Fix direct access to order_date property
This commit is contained in:
Claudio Sanches 2017-02-01 10:00:06 +01:00 committed by GitHub
commit 247c9aff50
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ class WC_Shortcode_Checkout {
</li>
<li class="date">
<?php _e( 'Date:', 'woocommerce' ); ?>
<strong><?php echo date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ); ?></strong>
<strong><?php echo date_i18n( get_option( 'date_format' ), $order->get_date_created() ); ?></strong>
</li>
<li class="total">
<?php _e( 'Total:', 'woocommerce' ); ?>