From e4248add82eb9b3f88bb8adda5e2848d3de395ea Mon Sep 17 00:00:00 2001 From: Clement Boirie Date: Tue, 17 Oct 2023 17:17:13 +0200 Subject: [PATCH] fix incorrect timestamp value when scheduling action --- src/Orders/Operations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orders/Operations.php b/src/Orders/Operations.php index fe0c7ad..7de1452 100644 --- a/src/Orders/Operations.php +++ b/src/Orders/Operations.php @@ -205,7 +205,7 @@ public static function acknowledge_order( $order_id, $message = '' ) { if ( false === $ok ) { //if we cant acknowledge order => add action after 15 min as_schedule_single_action( - MINUTE_IN_SECONDS * 15, + time() + ( 15 * MINUTE_IN_SECONDS ), 'sf_acknowledge_remain_order', array( $order_id,