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:
Herbert Saal Gutierrez
2012-06-26 12:03:28 -04:00
parent 03b85f1d85
commit c53e164534

View File

@@ -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 . "]";
}