Time zone problem
-
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)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Time zone problem’ is closed to new replies.