Skip to content

Commit 4d9bdc9

Browse files
fix: convert all DateTime instances to string
The `convertValue()` method now converts also `DateTimeImmutable` instead of only `DateTime`.
1 parent 2a7de69 commit 4d9bdc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Eel/ElasticSearchQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ protected function convertValue($value)
10541054
return $value->getIdentifier();
10551055
}
10561056

1057-
if ($value instanceof \DateTime) {
1057+
if ($value instanceof \DateTimeInterface) {
10581058
return $value->format('Y-m-d\TH:i:sP');
10591059
}
10601060

0 commit comments

Comments
 (0)