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;