diff --git a/admin/post-types/shop_order.php b/admin/post-types/shop_order.php index af7d0789d2a..85ca1f02fc5 100644 --- a/admin/post-types/shop_order.php +++ b/admin/post-types/shop_order.php @@ -132,7 +132,7 @@ function woocommerce_custom_order_columns( $column ) { } else { $t_time = get_the_time( __( 'Y/m/d g:i:s A', 'woocommerce' ), $post ); - $gmt_time = strtotime( $post->post_date_gmt ); + $gmt_time = strtotime( $post->post_date_gmt . ' UTC' ); $time_diff = current_time('timestamp', 1) - $gmt_time; if ( $time_diff > 0 && $time_diff < 24*60*60 ) @@ -561,4 +561,4 @@ function woocommerce_delete_order_items( $postid ) } } -add_action( 'before_delete_post', 'woocommerce_delete_order_items' ); \ No newline at end of file +add_action( 'before_delete_post', 'woocommerce_delete_order_items' );