After some observation I assume that, in the beginning, time in orders list is correct, but after changing status to order time is messes up.
I have same problem. The time is correct in the list but in the order page the time 2 hours less. And after I change the order status it will be modified with the wrong time.
If I change an order multiple times, the time will decrease by two hours with each update.
-
This reply was modified 3 years, 8 months ago by
MateDan.
I found a quick workaround until dev guys find the issue. Copy the below code into the functions.php file of your (child)theme.
This makes the ordering of shop orders default to post id (number of order).
function set_order_of_shop_orders_in_admin( $wp_query ) { global $pagenow;
if ( is_admin() && 'edit.php' == $pagenow && isset($_GET['post_type']) && !isset($_GET['orderby'])) {
if ( $_GET['post_type'] == 'shop_order' ) {
$wp_query->set( 'orderby', 'ID' );
$wp_query->set( 'order', 'desc' );
} } }
add_filter('pre_get_posts', 'set_order_of_shop_orders_in_admin', 5 );
A fix has been submitted for this issue: https://github.com/woocommerce/woocommerce/pull/34687
We anticipate a release coming soon that should fix this problem. Promptly update to v6.9.2 when released.