mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 10:39:28 +00:00
Fix date for recurring transactions #2407
This commit is contained in:
@@ -97,6 +97,7 @@ class CreateRecurringTransactions implements ShouldQueue
|
||||
*/
|
||||
public function setDate(Carbon $date): void
|
||||
{
|
||||
$date->startOfDay();
|
||||
$this->date = $date;
|
||||
}
|
||||
|
||||
@@ -301,6 +302,7 @@ class CreateRecurringTransactions implements ShouldQueue
|
||||
private function handleOccurrence(Recurrence $recurrence, Carbon $date): ?TransactionGroup
|
||||
{
|
||||
Log::debug(sprintf('Now at date %s.', $date->format('Y-m-d')));
|
||||
$date->startOfDay();
|
||||
if ($date->ne($this->date)) {
|
||||
Log::debug(sprintf('%s is not not today (%s)', $date->format('Y-m-d'), $this->date->format('Y-m-d')));
|
||||
|
||||
|
Reference in New Issue
Block a user