mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix endpoints, validate dates.
This commit is contained in:
@@ -57,6 +57,10 @@ class CronRequest extends FormRequest
|
||||
if ($this->has('date')) {
|
||||
$data['date'] = $this->getCarbonDate('date');
|
||||
}
|
||||
// catch NULL.
|
||||
if(null === $data['date']) {
|
||||
$data['date'] = today(config('app.timezone'));
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
Reference in New Issue
Block a user