James Cole
2022-02-03 13:16:20 +01:00
parent ddabfbc1ad
commit d7e6a7b125
2 changed files with 4 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ class TriggerRequest extends FormRequest
*/
private function getDate(string $field): ?Carbon
{
return null === $this->query($field) ? null : Carbon::createFromFormat('Y-m-d', $this->query($field));
return null === $this->query($field) ? null : Carbon::createFromFormat('Y-m-d', substr($this->query($field),0,10));
}
/**
@@ -63,7 +63,7 @@ class TriggerRequest extends FormRequest
*/
private function getAccounts(): array
{
return $this->get('accounts');
return $this->get('accounts') ?? [];
}
/**