From 0535b74fa9525157de09dedd0a2d81e8780edced Mon Sep 17 00:00:00 2001 From: okarpenko <okarpenko@ebay.com> Date: Mon, 30 Mar 2015 13:37:13 +0300 Subject: [PATCH] MAGETWO-35487: HTML minification management --- app/code/Magento/Payment/Block/Info/Cc.php | 2 +- app/code/Magento/Payment/Test/Unit/Block/Info/CcTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Payment/Block/Info/Cc.php b/app/code/Magento/Payment/Block/Info/Cc.php index bd92161c868..ed6d23ecacf 100644 --- a/app/code/Magento/Payment/Block/Info/Cc.php +++ b/app/code/Magento/Payment/Block/Info/Cc.php @@ -78,7 +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->format('d')); + $date->setDate($this->getInfo()->getCcExpYear(),$this->getInfo()->getCcExpMonth(), 1); return $date; } diff --git a/app/code/Magento/Payment/Test/Unit/Block/Info/CcTest.php b/app/code/Magento/Payment/Test/Unit/Block/Info/CcTest.php index 72deb26aefc..cbaca7b85a3 100644 --- a/app/code/Magento/Payment/Test/Unit/Block/Info/CcTest.php +++ b/app/code/Magento/Payment/Test/Unit/Block/Info/CcTest.php @@ -157,7 +157,7 @@ class CcTest extends \PHPUnit_Framework_TestCase public function getCcExpDateDataProvider() { return [ - [3, 2015], + [2, 2015], [12, 2011], [01, 2036] ]; -- GitLab