From cbbdfadb74cba67807513cde17a711dec1245445 Mon Sep 17 00:00:00 2001 From: Nicola Mustone Date: Wed, 22 Oct 2014 17:28:25 +0200 Subject: [PATCH 1/2] Order note use comment_date instead of GMT date The order comment note should not use always GMT date. I think using `comment_date` is better. Ref Ticket: #224994 --- includes/admin/meta-boxes/class-wc-meta-box-order-notes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/meta-boxes/class-wc-meta-box-order-notes.php b/includes/admin/meta-boxes/class-wc-meta-box-order-notes.php index 629cb0ff89f..02cf3c34af9 100644 --- a/includes/admin/meta-boxes/class-wc-meta-box-order-notes.php +++ b/includes/admin/meta-boxes/class-wc-meta-box-order-notes.php @@ -49,7 +49,7 @@ class WC_Meta_Box_Order_Notes { comment_content ) ) ); ?>

- comment_date_gmt ) ), date_i18n( wc_time_format(), strtotime( $note->comment_date_gmt ) ) ); ?> + comment_date ) ), date_i18n( wc_time_format(), strtotime( $note->comment_date ) ) ); ?> comment_author !== __( 'WooCommerce', 'woocommerce' ) ) printf( ' ' . __( 'by %s', 'woocommerce' ), $note->comment_author ); ?>

From dcde2a52e205d576a9c74ed94d5bb4534910fe64 Mon Sep 17 00:00:00 2001 From: Nicola Mustone Date: Wed, 22 Oct 2014 17:31:12 +0200 Subject: [PATCH 2/2] Removed GMT --- includes/admin/meta-boxes/class-wc-meta-box-order-notes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/meta-boxes/class-wc-meta-box-order-notes.php b/includes/admin/meta-boxes/class-wc-meta-box-order-notes.php index 02cf3c34af9..512621045cb 100644 --- a/includes/admin/meta-boxes/class-wc-meta-box-order-notes.php +++ b/includes/admin/meta-boxes/class-wc-meta-box-order-notes.php @@ -49,7 +49,7 @@ class WC_Meta_Box_Order_Notes { comment_content ) ) ); ?>

- comment_date ) ), date_i18n( wc_time_format(), strtotime( $note->comment_date ) ) ); ?> + comment_date ) ), date_i18n( wc_time_format(), strtotime( $note->comment_date ) ) ); ?> comment_author !== __( 'WooCommerce', 'woocommerce' ) ) printf( ' ' . __( 'by %s', 'woocommerce' ), $note->comment_author ); ?>