Skip to content

Commit 13ad0e6

Browse files
committed
Revert "Fix for coupon expiration date validation"
This reverts commit 3dc4dc7
1 parent 3dc4dc7 commit 13ad0e6

File tree

1 file changed

+1
-1
lines changed
  • src/app/code/community/Hackathon/PromoCodeMessages/Model

1 file changed

+1
-1
lines changed

src/app/code/community/Hackathon/PromoCodeMessages/Model/Validator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ protected function _validateGeneral($rule, $coupon)
163163

164164
// check to date
165165
if ($rule->getToDate()) {
166-
$toDate = new Zend_Date($rule->getToDate() . ' 23:59:59', Varien_Date::DATE_INTERNAL_FORMAT);
166+
$toDate = new Zend_Date($rule->getToDate(), Varien_Date::DATE_INTERNAL_FORMAT);
167167
if ($now->isLater($toDate, Zend_Date::DATE_MEDIUM)) {
168168
Mage::throwException($this->_formatMessage(
169169
'Your coupon is no longer valid. It expired on %s.',

0 commit comments

Comments
 (0)