Show time on order backend format not works before 24hours
-
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)
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.