diff --git a/Helper/PurchaseHelper.php b/Helper/PurchaseHelper.php index adae1dea..11f3c0d2 100644 --- a/Helper/PurchaseHelper.php +++ b/Helper/PurchaseHelper.php @@ -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()) {