mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
port to 4.1 date with time on phraseanet
This commit is contained in:
@@ -396,10 +396,10 @@ class ElasticSearchEngine implements SearchEngineInterface
|
||||
if ($options->getDateFields() && ($options->getMaxDate() || $options->getMinDate())) {
|
||||
$range = [];
|
||||
if ($options->getMaxDate()) {
|
||||
$range['lte'] = $options->getMaxDate()->format(FieldMapping::DATE_FORMAT_CAPTION_PHP);
|
||||
$range['lte'] = $options->getMaxDate()->format('Y-m-d');
|
||||
}
|
||||
if ($options->getMinDate()) {
|
||||
$range['gte'] = $options->getMinDate()->format(FieldMapping::DATE_FORMAT_CAPTION_PHP);
|
||||
$range['gte'] = $options->getMinDate()->format('Y-m-d');
|
||||
}
|
||||
|
||||
foreach ($options->getDateFields() as $dateField) {
|
||||
|
Reference in New Issue
Block a user