• Resolved agenceamar

    (@agenceamar)


    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)
  • Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @agenceamar,

    Thanks for reaching out. You may add this?code snippet?to your theme’s functions.php file or activate using a code snippet plugin to modify the order date format. The code is currently set to the day/month/year format. You can adjust this to your preferred format by modifying the following line of code:$order_date_format = 'd/m/y';

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.