• Resolved nagy1991

    (@nagy1991)


    I’m looking for you with the following problem.New Order Notification for Woocommerce extension. In the Order date field, the system does not request the time zone that the time zone set by wp. The plugin requests Universal time (UTC). I would ask for your help for this because I use UTC / GMT +2 hours.

    Thank you in advance for your help

    $content = "<h1>Rendelések</h1>";
        $content .= "<table id='customers-new-order-notification'>";
        $content .= "<tr><th>sorszám</th><th>Id?pont</th><th>státusza</th><th>rendelés megtekintése</th></tr>";
        foreach($recent_orders as $recent_order)
        {
            $order_id = $recent_order->ID;
            $order_date = $recent_order->date_created;
            $order_date = substr($order_date, 0, 19);
            $order_date = explode('T', $order_date);
    
            $order_status = $recent_order->status;
            $order_link = get_site_url();
            $order_link .= "/wp-admin/post.php?post=";
            $order_link .= $order_id;
            $order_link .= "&action=edit";
            
            $content .= "<tr><td>".esc_html($order_id)."</td><td>".esc_html($order_date[0])." - ".esc_html($order_date[1])."</td><td>".esc_html(ucfirst($order_status))."</td><td><a href='".esc_html($order_link)."'>Megrendelés ".esc_html($order_id)."</a></td></tr>";
        }
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Eyup Gulsen

    (@mrebabi)

    Hello,

    Thanks for mentioning this problem, I have added it to development notes of next version and hope to provide a better experience with date formatting and time zone selection.

    You may follow the plugin release notes from: https://github.com/MrEbabi/New-Order-Notification-for-Woocommerce-Plugin/blob/master/README.md

    Hope you enjoy the upcoming version of the plugin!

    Best regards,

    Thread Starter nagy1991

    (@nagy1991)

    when expected?

    Plugin Author Eyup Gulsen

    (@mrebabi)

    Hello,

    Version 1.2.0 is released. You may update the plugin now. Kindly inform me if you face any other problems.

    Thanks,

    Best regards,

    Thread Starter nagy1991

    (@nagy1991)

    Hello,

    Unfortunately, the 1.2.0 version does not include the time zone.
    When is it expected that the time zone setting will be included as well. That was what my client asked.
    Maybe there is no simple solution to it?

    welcome

    NS

    Thread Starter nagy1991

    (@nagy1991)

    Hello,

    Unfortunately, the 1.2.0 version does not include the time zone.
    When is it expected that the time zone setting will be included as well. That was what my client asked.
    Maybe there is no simple solution to it?

    welcome

    NS

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Time zone problem’ is closed to new replies.