mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 10:53:37 +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
|
public function setDate(Carbon $date): void
|
||||||
{
|
{
|
||||||
|
$date->startOfDay();
|
||||||
$this->date = $date;
|
$this->date = $date;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -301,6 +302,7 @@ class CreateRecurringTransactions implements ShouldQueue
|
|||||||
private function handleOccurrence(Recurrence $recurrence, Carbon $date): ?TransactionGroup
|
private function handleOccurrence(Recurrence $recurrence, Carbon $date): ?TransactionGroup
|
||||||
{
|
{
|
||||||
Log::debug(sprintf('Now at date %s.', $date->format('Y-m-d')));
|
Log::debug(sprintf('Now at date %s.', $date->format('Y-m-d')));
|
||||||
|
$date->startOfDay();
|
||||||
if ($date->ne($this->date)) {
|
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')));
|
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