Skip to content

Commit 983d05f

Browse files
MAGETWO-35064: At night (by Kiev time) some tests connected to dates are failed
1 parent 1d773ec commit 983d05f

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/Checkout/Helper

1 file changed

+5
-1
lines changed

app/code/Magento/Checkout/Helper/Data.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,11 @@ public function sendPaymentFailedEmail($checkout, $message, $checkoutType = 'one
278278
[
279279
'reason' => $message,
280280
'checkoutType' => $checkoutType,
281-
'dateAndTime' => $this->_localeDate->date(),
281+
'dateAndTime' => $this->_localeDate->formatDateTime(
282+
new \DateTime(),
283+
\IntlDateFormatter::MEDIUM,
284+
\IntlDateFormatter::MEDIUM
285+
),
282286
'customer' => $checkout->getCustomerFirstname() . ' ' . $checkout->getCustomerLastname(),
283287
'customerEmail' => $checkout->getCustomerEmail(),
284288
'billingAddress' => $checkout->getBillingAddress(),

0 commit comments

Comments
 (0)