Display date in admin using offset

This commit is contained in:
Mike Jolley 2017-03-08 16:51:22 +00:00
parent c7dc8ae2b4
commit 165cdca92b
1 changed files with 1 additions and 1 deletions

View File

@ -532,7 +532,7 @@ class WC_Admin_Post_Types {
printf( '<mark class="%s tips" data-tip="%s">%s</mark>', esc_attr( sanitize_html_class( $the_order->get_status() ) ), esc_attr( wc_get_order_status_name( $the_order->get_status() ) ), esc_html( wc_get_order_status_name( $the_order->get_status() ) ) );
break;
case 'order_date' :
printf( '<time datetime="%s">%s</time>', esc_attr( date( 'c', $the_order->get_date_created() ) ), esc_html( date_i18n( __( 'Y-m-d', 'woocommerce' ), $the_order->get_date_created() ) ) );
printf( '<time datetime="%s">%s</time>', esc_attr( $the_order->get_date_created()->format( 'c' ) ), esc_html( date_i18n( __( 'Y-m-d', 'woocommerce' ), $the_order->get_date_created()->getOffsetTimestamp() ) ) );
break;
case 'customer_message' :
if ( $the_order->get_customer_note() ) {