mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 07:38:29 +00:00
Better call to date.
This commit is contained in:
@@ -151,7 +151,7 @@ class ReportFormRequest extends FormRequest
|
||||
*/
|
||||
public function getEndDate(): Carbon
|
||||
{
|
||||
$date = new Carbon;
|
||||
$date = today(config('app.timezone'));
|
||||
$range = $this->get('daterange');
|
||||
$parts = explode(' - ', (string) $range);
|
||||
if (2 === count($parts)) {
|
||||
@@ -179,7 +179,7 @@ class ReportFormRequest extends FormRequest
|
||||
*/
|
||||
public function getStartDate(): Carbon
|
||||
{
|
||||
$date = new Carbon;
|
||||
$date = today(config('app.timezone'));
|
||||
$range = $this->get('daterange');
|
||||
$parts = explode(' - ', (string) $range);
|
||||
if (2 === count($parts)) {
|
||||
|
||||
Reference in New Issue
Block a user