Skip to content

Commit

Permalink
MAG-739: Fix pre auth createdAt date
Browse files Browse the repository at this point in the history
  • Loading branch information
ebanolopes committed Mar 21, 2022
1 parent bebd75a commit 78de153
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Helper/PurchaseHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1649,13 +1649,16 @@ public function makePurchaseFromQuote(Quote $quote)
}
}

$dateTime = $this->dateTimeFactory->create();
$caseCreateDate = $dateTime->gmtDate();

$purchase['shipments'] = $this->makeShipmentsFromQuote($quote);
$purchase['orderChannel'] = "WEB";
$purchase['totalPrice'] = $quote->getGrandTotal();
$purchase['currency'] = $quote->getQuoteCurrencyCode();
$purchase['orderId'] = $reservedOrderId;
$purchase['receivedBy'] = $this->getReceivedBy();
$purchase['createdAt'] = date('c', strtotime($quote->getCreatedAt()));
$purchase['createdAt'] = date('c', strtotime($caseCreateDate));
$purchase['browserIpAddress'] = $this->filterIp($this->remoteAddress->getRemoteAddress());

if ($this->deviceHelper->isDeviceFingerprintEnabled()) {
Expand Down

0 comments on commit 78de153

Please sign in to comment.