Fix date issue.

This commit is contained in:
James Cole
2021-12-28 20:42:50 +01:00
parent 3444146da3
commit 246fa0d6e4
18 changed files with 30 additions and 30 deletions

View File

@@ -58,8 +58,8 @@ class GenericRequest extends FormRequest
public function getAll(): array
{
return [
'start' => $this->date('start'),
'end' => $this->date('end'),
'start' => $this->getCarbonDate('start'),
'end' => $this->getCarbonDate('end'),
];
}
@@ -204,7 +204,7 @@ class GenericRequest extends FormRequest
*/
public function getEnd(): Carbon
{
$date = $this->date('end');
$date = $this->getCarbonDate('end');
$date->endOfDay();
return $date;
@@ -251,7 +251,7 @@ class GenericRequest extends FormRequest
*/
public function getStart(): Carbon
{
$date = $this->date('start');
$date = $this->getCarbonDate('start');
$date->startOfDay();
return $date;