• Resolved Vijay

    (@vijaydj)


    Hi,
    iam using woocommerce_admin_order_date_format filter to change the format of the order date in the admin order table.

    if the order placed date is after 24 hours the custom format is affected, but if it is in between 24 hours then it shows like *1 hour ago*. I want this is as the current date and time like 05/11/2020, 5.00 am

    how could I achieve this?
    here is the code that I tried.

    add_filter(‘woocommerce_admin_order_date_format’, ‘custom_post_date_column_time’);
    function custom_post_date_column_time($format)
    {
    return __(‘d/m/Y g:i a’, ‘woocommerce’);
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show time on order backend format not works before 24hours’ is closed to new replies.