• Resolved pragmams

    (@pragmams)


    Hello,

    Why should be order details showing universal time instead of local time?

    Also, today 2 orders out of 3 in woocommerce orders list, wrote “6 hours ago” instead of 1 hour, but 3rd was correct. I thought maybe on this 2 order system counted time from universal time… (Don’t know why)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pragmams

    (@pragmams)

    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 2 years, 6 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Incorrect order date time’ is closed to new replies.