Skip to content

Commit 0535b74

Browse files
author
okarpenko
committed
MAGETWO-35487: HTML minification management
1 parent 4dbd604 commit 0535b74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Payment/Block/Info/Cc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function getCcExpMonth()
7878
public function getCcExpDate()
7979
{
8080
$date = new \DateTime('now', new \DateTimeZone($this->_localeDate->getConfigTimezone()));
81-
$date->setDate($this->getInfo()->getCcExpYear(), $this->getInfo()->getCcExpMonth(), $date->format('d'));
81+
$date->setDate($this->getInfo()->getCcExpYear(),$this->getInfo()->getCcExpMonth(), 1);
8282
return $date;
8383
}
8484

app/code/Magento/Payment/Test/Unit/Block/Info/CcTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function testGetCcExpDate($ccExpMonth, $ccExpYear)
157157
public function getCcExpDateDataProvider()
158158
{
159159
return [
160-
[3, 2015],
160+
[2, 2015],
161161
[12, 2011],
162162
[01, 2036]
163163
];

0 commit comments

Comments
 (0)