Order date format
-
Hi
When I try to change the date format using the code:
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(“Y-m-d”,strtotime($order_date));
}Change : return?date(“d/m/y“,strtotime($order_date));
It returns 01/01/1970 instead of the actual date.
How can I fix this ?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.