From 109cd37211e1f9bd85d00795745a1999a2dca80c Mon Sep 17 00:00:00 2001 From: imlonghao Date: Tue, 2 Apr 2024 23:44:45 +0800 Subject: [PATCH] Set date to now when cloning journal Signed-off-by: imlonghao --- app/Services/Internal/Update/GroupCloneService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Internal/Update/GroupCloneService.php b/app/Services/Internal/Update/GroupCloneService.php index e3353d6ada..ff9c33249d 100644 --- a/app/Services/Internal/Update/GroupCloneService.php +++ b/app/Services/Internal/Update/GroupCloneService.php @@ -54,7 +54,7 @@ class GroupCloneService { $newJournal = $journal->replicate(); $newJournal->transaction_group_id = $newGroup->id; - $newJournal->date = today(config('app.timezone')); + $newJournal->date = now(); $newJournal->save(); foreach ($journal->transactions as $transaction) {