my-account replace template usage of dates
Per new Woo template files;
This commit is contained in:
parent
abf4d75e8e
commit
3484c13ea0
|
@ -56,7 +56,7 @@ if ( $customer_orders ) : ?>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<?php elseif ( 'order-date' === $column_id ) : ?>
|
<?php elseif ( 'order-date' === $column_id ) : ?>
|
||||||
<time datetime="<?php echo date( 'Y-m-d', strtotime( $order->order_date ) ); ?>" title="<?php echo esc_attr( strtotime( $order->order_date ) ); ?>"><?php echo date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ); ?></time>
|
<time datetime="<?php echo esc_attr( $order->get_date_created()->date( 'c' ) ); ?>"><?php echo esc_html( wc_format_datetime( $order->get_date_created() ) ); ?></time>
|
||||||
|
|
||||||
<?php elseif ( 'order-status' === $column_id ) : ?>
|
<?php elseif ( 'order-status' === $column_id ) : ?>
|
||||||
<?php echo wc_get_order_status_name( $order->get_status() ); ?>
|
<?php echo wc_get_order_status_name( $order->get_status() ); ?>
|
||||||
|
|
Reference in New Issue