Skip to content

Commit a2cbd24

Browse files
committed
MC-18954: Nightly build jobs were failing lately after un-skipping tests in MC-5777
1 parent 2668564 commit a2cbd24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/CatalogRule/Model/Indexer/ReindexRuleProductPrice.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ public function execute($batchCount, Product $product = null, $useAdditionalTabl
8585
$storeGroup = $this->storeManager->getGroup($website->getDefaultGroupId());
8686
$currentDate = $this->localeDate->scopeDate($storeGroup->getDefaultStoreId(), null, true);
8787
$previousDate = (clone $currentDate)->modify('-1 day');
88+
$previousDate->setTime(23, 59, 59);
8889
$nextDate = (clone $currentDate)->modify('+1 day');
90+
$nextDate->setTime(0, 0, 0);
8991

9092
while ($ruleData = $productsStmt->fetch()) {
9193
$ruleProductId = $ruleData['product_id'];

0 commit comments

Comments
 (0)