Skip to content

Commit 9111182

Browse files
#39169: Special Price To Date is wrongly validated on applySpecialPrice
1 parent 89b4e2e commit 9111182

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
@@ -274,7 +274,7 @@ public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null)
274274
$scopeTimeStamp = $this->scopeTimeStamp($scope);
275275
$fromTimeStamp = strtotime($dateFrom);
276276
$toTimeStamp = strtotime($dateTo);
277-
if ($dateTo) {
277+
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
279279
$toTimeStamp += 86400;
280280
}

0 commit comments

Comments
 (0)