File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ protected function _validateGeneral($rule, $coupon)
152
152
// check from date
153
153
if ($ rule ->getFromDate ()) {
154
154
$ fromDate = new Zend_Date ($ rule ->getFromDate (), Varien_Date::DATE_INTERNAL_FORMAT );
155
- if ($ now ->isEarlier ($ fromDate )) {
155
+ if ($ now ->isEarlier ($ fromDate, Zend_Date:: DATE_MEDIUM )) {
156
156
Mage::throwException ($ this ->_formatMessage (
157
157
'Your coupon is not valid yet. It will be active on %s. ' ,
158
158
Mage::helper ('core ' )->formatDate ($ fromDate , Mage_Core_Model_Locale::FORMAT_TYPE_LONG ),
@@ -164,7 +164,7 @@ protected function _validateGeneral($rule, $coupon)
164
164
// check to date
165
165
if ($ rule ->getToDate ()) {
166
166
$ toDate = new Zend_Date ($ rule ->getToDate (), Varien_Date::DATE_INTERNAL_FORMAT );
167
- if ($ now ->isLater ($ toDate )) {
167
+ if ($ now ->isLater ($ toDate, Zend_Date:: DATE_MEDIUM )) {
168
168
Mage::throwException ($ this ->_formatMessage (
169
169
'Your coupon is no longer valid. It expired on %s. ' ,
170
170
Mage::helper ('core ' )->formatDate ($ toDate , Mage_Core_Model_Locale::FORMAT_TYPE_LONG ),
You can’t perform that action at this time.
0 commit comments