From 37007ff33417602912065080919304d558c34866 Mon Sep 17 00:00:00 2001 From: Michiel Gerritsen Date: Wed, 7 Aug 2024 15:27:21 +0200 Subject: [PATCH] 2.3.7 fix --- Service/Mollie/Order/IsPaymentLinkExpired.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Service/Mollie/Order/IsPaymentLinkExpired.php b/Service/Mollie/Order/IsPaymentLinkExpired.php index bf5fc84394c..e7e443ac070 100644 --- a/Service/Mollie/Order/IsPaymentLinkExpired.php +++ b/Service/Mollie/Order/IsPaymentLinkExpired.php @@ -57,7 +57,7 @@ public function execute(OrderInterface $order): bool private function checkWithDefaultDate(OrderInterface $order): bool { $now = $this->timezone->scopeDate($order->getStoreId()); - $orderDate = $this->timezone->scopeDate($order->getStoreId(), $order->getCreatedAt()); + $orderDate = $this->timezone->scopeDate($order->getStoreId(), new \DateTime($order->getCreatedAt())); $diff = $now->diff($orderDate); return $diff->days >= 28;