mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
port to 4.1 date with time on phraseanet
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
namespace Alchemy\Phrasea\SearchEngine\Elastic\Structure;
|
||||
|
||||
use Alchemy\Phrasea\SearchEngine\Elastic\FieldMapping;
|
||||
use Alchemy\Phrasea\SearchEngine\Elastic\Mapping;
|
||||
use Alchemy\Phrasea\SearchEngine\Elastic\RecordHelper;
|
||||
use Assert\Assertion;
|
||||
|
||||
@@ -20,7 +19,7 @@ class ValueChecker
|
||||
{
|
||||
Assertion::allIsInstanceOf($list, Typed::class);
|
||||
$is_numeric = is_numeric($value);
|
||||
$is_valid_date = RecordHelper::validateDate($value);
|
||||
$is_valid_date = (RecordHelper::sanitizeDate($value) !== null);
|
||||
$filtered = [];
|
||||
foreach ($list as $item) {
|
||||
switch ($item->getType()) {
|
||||
|
Reference in New Issue
Block a user