We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03b261e commit 3b710bdCopy full SHA for 3b710bd
app/code/Magento/Payment/Block/Info/Cc.php
@@ -78,11 +78,7 @@ public function getCcExpMonth()
78
public function getCcExpDate()
79
{
80
$date = new \DateTime('now', new \DateTimeZone($this->_localeDate->getConfigTimezone()));
81
- $date->setDate(
82
- $this->getInfo()->getCcExpYear(),
83
- $this->getInfo()->getCcExpMonth(),
84
- $date->modify('first day of')->format('d')
85
- );
+ $date->setDate($this->getInfo()->getCcExpYear(), $this->getInfo()->getCcExpMonth() + 1, 0);
86
return $date;
87
}
88
0 commit comments