Skip to content

Commit

Permalink
2.3.7 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Aug 7, 2024
1 parent 999a4a7 commit 37007ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Service/Mollie/Order/IsPaymentLinkExpired.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 37007ff

Please sign in to comment.