Order date format on packing slip is not correct
-
Hello,
I’ve an issue with the order date formatting on the packing slip. I’m using the free version of the plugin.
I’ve tried to adjust the format by added the filter to my functions.php file as described in the plugin’s help section, but it doesn’t work as expected:
add_filter(‘wf_pklist_alter_order_date’,’wt_pklist_change_order_date_format’,10,3);
function wt_pklist_change_order_date_format($order_date, $template_type, $order){
/* new date format */
return date(“d-m-Y”,strtotime($order_date));
}I would expect it would give 04-06-2024 as output, but it switches the day and month. Of course, I could adjust the filter to use ‘m-d-Y’ as pattern, but this is not a very nice solution. Could please investigate this issue and advise or fix this in a following release of the plugin?
- The topic ‘Order date format on packing slip is not correct’ is closed to new replies.