BUG 9180 Error in date interval search
Error ----- Error in date interval search, the second date in the interval was not used. Solution -------- The second date was changed to the correct variable to use it in the interval.
This commit is contained in:
@@ -843,7 +843,7 @@ class AppSolr
|
||||
// $toDateDatetime = new DateTime($toDateOriginal);
|
||||
// $toDateDatetime = date_create_from_format ( 'Y-m-d',
|
||||
// $toDateOriginal );
|
||||
$toDate = gmdate ("Y-m-d\T00:00:00\Z", strtotime ($fromDateOriginal));
|
||||
$toDate = gmdate ("Y-m-d\T00:00:00\Z", strtotime ($toDateOriginal));
|
||||
}
|
||||
$searchText = ":[" . $fromDate . " TO " . $toDate . "]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user