Skip to content

Commit a3fe48c

Browse files
#39169: Special Price To Date is wrongly validated on applySpecialPrice
1 parent 1ce9b74 commit a3fe48c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Stdlib/DateTime/Timezone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null)
276276
$toTimeStamp = strtotime($dateTo);
277277
if ($dateTo && date('H:i:s', strtotime($dateTo)) === '00:00:00') {
278278
// fix date YYYY-MM-DD 00:00:00 to YYYY-MM-DD 23:59:59
279-
$toTimeStamp += 86400;
279+
$toTimeStamp += 86399;
280280
}
281281

282282
return !(!$this->_dateTime->isEmptyDate($dateFrom) && $scopeTimeStamp < $fromTimeStamp ||

0 commit comments

Comments
 (0)