diff --git a/app/code/Magento/Payment/Block/Info/Cc.php b/app/code/Magento/Payment/Block/Info/Cc.php index 6da308168f027ba0070612e89491f81af541e36c..afc1d2ebd298a15703e5efa8460eafca07125194 100644 --- a/app/code/Magento/Payment/Block/Info/Cc.php +++ b/app/code/Magento/Payment/Block/Info/Cc.php @@ -78,11 +78,7 @@ class Cc extends \Magento\Payment\Block\Info public function getCcExpDate() { $date = new \DateTime('now', new \DateTimeZone($this->_localeDate->getConfigTimezone())); - $date->setDate( - $this->getInfo()->getCcExpYear(), - $this->getInfo()->getCcExpMonth(), - $date->modify('first day of')->format('d') - ); + $date->setDate($this->getInfo()->getCcExpYear(), $this->getInfo()->getCcExpMonth() + 1, 0); return $date; }