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 a6e17ed commit 03b261eCopy full SHA for 03b261e
app/code/Magento/Payment/Block/Info/Cc.php
@@ -78,7 +78,11 @@ public function getCcExpMonth()
78
public function getCcExpDate()
79
{
80
$date = new \DateTime('now', new \DateTimeZone($this->_localeDate->getConfigTimezone()));
81
- $date->setDate($this->getInfo()->getCcExpYear(), $this->getInfo()->getCcExpMonth(), $date->format('d'));
+ $date->setDate(
82
+ $this->getInfo()->getCcExpYear(),
83
+ $this->getInfo()->getCcExpMonth(),
84
+ $date->modify('first day of')->format('d')
85
+ );
86
return $date;
87
}
88
0 commit comments