diff --git a/app/code/core/Mage/SalesRule/Model/Validator.php b/app/code/core/Mage/SalesRule/Model/Validator.php index 144eb681e87..9bd2e0ba2f7 100644 --- a/app/code/core/Mage/SalesRule/Model/Validator.php +++ b/app/code/core/Mage/SalesRule/Model/Validator.php @@ -179,7 +179,9 @@ protected function _canProcessRule($rule, $address) return false; } // check coupon expiration - if ($coupon->hasExpirationDate() && ($coupon->getExpirationDate() < Mage::getModel('core/date')->date())) { + $couponExpirationDay = Mage::getModel('core/date')->date(Varien_Date::DATE_PHP_FORMAT, $coupon->getExpirationDate()); + $today = Mage::getModel('core/date')->date(Varien_Date::DATE_PHP_FORMAT); + if ($coupon->hasExpirationDate() && ($couponExpirationDay < $today)) { $rule->setIsValidForAddress($address, false); return false; }