mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Add timezone to date objects
This commit is contained in:
@@ -232,16 +232,16 @@ class AccountBalanceCalculator
|
||||
/** @var AccountBalance $object */
|
||||
$object = $account->accountBalances()->firstOrCreate(
|
||||
[
|
||||
'title' => 'running_balance',
|
||||
'balance' => '0',
|
||||
'title' => 'running_balance',
|
||||
'balance' => '0',
|
||||
'transaction_currency_id' => $currencyId,
|
||||
'date' => $balance[1],
|
||||
'date_tz' => $balance[1]->format('e'),
|
||||
'date' => $balance[1],
|
||||
'date_tz' => $balance[1]->format('e'),
|
||||
]
|
||||
);
|
||||
$object->balance = $balance[0];
|
||||
$object->date = $balance[1];
|
||||
$object->date_tz = $balance[1]->format('e');
|
||||
$object->date_tz = $balance[1]->format('e');
|
||||
$object->save();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user