Skip to content

Commit 3037ae0

Browse files
committed
Fix CatalogRule insert logic
1 parent 36219b2 commit 3037ae0

File tree

1 file changed

+1
-1
lines changed
  • app/code/core/Mage/CatalogRule/Model/Resource

1 file changed

+1
-1
lines changed

app/code/core/Mage/CatalogRule/Model/Resource/Rule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function insertRuleData(Mage_CatalogRule_Model_Rule $rule, array $website
206206
$toTime = $toTime ? ($toTime + self::SECONDS_IN_DAY - 1) : 0;
207207

208208
$timestamp = time();
209-
if ($fromTime > $timestamp
209+
if ($fromTime > $timestamp + self::SECONDS_IN_DAY
210210
|| ($toTime && $toTime < $timestamp)
211211
) {
212212
return;

0 commit comments

Comments
 (0)