diff --git a/app/code/Magento/Payment/Block/Info/Cc.php b/app/code/Magento/Payment/Block/Info/Cc.php index bd92161c86834c161277851a5895e8d86d9152a1..6da308168f027ba0070612e89491f81af541e36c 100644 --- a/app/code/Magento/Payment/Block/Info/Cc.php +++ b/app/code/Magento/Payment/Block/Info/Cc.php @@ -78,7 +78,11 @@ 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->format('d')); + $date->setDate( + $this->getInfo()->getCcExpYear(), + $this->getInfo()->getCcExpMonth(), + $date->modify('first day of')->format('d') + ); return $date; }