From 165cdca92b4603d928df2deb7cacce2b5fdf1813 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 8 Mar 2017 16:51:22 +0000 Subject: [PATCH] Display date in admin using offset --- includes/admin/class-wc-admin-post-types.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-wc-admin-post-types.php b/includes/admin/class-wc-admin-post-types.php index 6671a9a4551..3edefe97adb 100644 --- a/includes/admin/class-wc-admin-post-types.php +++ b/includes/admin/class-wc-admin-post-types.php @@ -532,7 +532,7 @@ class WC_Admin_Post_Types { printf( '%s', 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( '', esc_attr( date( 'c', $the_order->get_date_created() ) ), esc_html( date_i18n( __( 'Y-m-d', 'woocommerce' ), $the_order->get_date_created() ) ) ); + printf( '', 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() ) {