Display date in admin using offset
This commit is contained in:
parent
c7dc8ae2b4
commit
165cdca92b
|
@ -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() ) {
|
||||
|
|
Loading…
Reference in New Issue