diff --git a/src/Storage/SelectQuery.php b/src/Storage/SelectQuery.php index fb97c97f0..897655537 100644 --- a/src/Storage/SelectQuery.php +++ b/src/Storage/SelectQuery.php @@ -330,7 +330,7 @@ public function build(): QueryBuilder $fieldName = preg_replace('/(_[0-9]+)$/', '', $key); // Use strtotime on 'date' fields to allow selections like "today", "in 3 weeks" or "this year" if (in_array($fieldName, $dateFields, true) && (strtotime($param) !== false)) { - $param = Carbon::parse(strtotime($param))->toIso8601ZuluString('milisecond'); + $param = Carbon::parse((string) strtotime($param))->toIso8601ZuluString('milisecond'); } if (in_array($fieldName, $this->regularFields, true) && ! in_array($fieldName, $numberFields, true)) {