mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Use Carbon instead of DateTime
This commit is contained in:
parent
7de3c7f80a
commit
4bb4ffbac4
@ -23,6 +23,7 @@ declare(strict_types=1);
|
|||||||
namespace FireflyIII\Support\Import\JobConfiguration\FinTS;
|
namespace FireflyIII\Support\Import\JobConfiguration\FinTS;
|
||||||
|
|
||||||
|
|
||||||
|
use Carbon\Carbon;
|
||||||
use FireflyIII\Exceptions\FireflyException;
|
use FireflyIII\Exceptions\FireflyException;
|
||||||
use FireflyIII\Import\JobConfiguration\FinTSConfigurationSteps;
|
use FireflyIII\Import\JobConfiguration\FinTSConfigurationSteps;
|
||||||
use FireflyIII\Models\AccountType;
|
use FireflyIII\Models\AccountType;
|
||||||
@ -98,8 +99,8 @@ class ChooseAccountHandler implements FinTSConfigurationInterface
|
|||||||
'fints_account' => $this->importJob->configuration['fints_account'] ?? null,
|
'fints_account' => $this->importJob->configuration['fints_account'] ?? null,
|
||||||
'local_accounts' => $localAccounts,
|
'local_accounts' => $localAccounts,
|
||||||
'local_account' => $this->importJob->configuration['local_account'] ?? null,
|
'local_account' => $this->importJob->configuration['local_account'] ?? null,
|
||||||
'from_date' => $this->importJob->configuration['from_date'] ?? (new \DateTime('now - 1 month'))->format('Y-m-d'),
|
'from_date' => $this->importJob->configuration['from_date'] ?? (new Carbon('now - 1 month'))->format('Y-m-d'),
|
||||||
'to_date' => $this->importJob->configuration['to_date'] ?? (new \DateTime('now'))->format('Y-m-d')
|
'to_date' => $this->importJob->configuration['to_date'] ?? (new Carbon('now'))->format('Y-m-d')
|
||||||
];
|
];
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user