mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix more date issues
This commit is contained in:
parent
7196ac3ec9
commit
4fef316ddd
@ -208,7 +208,7 @@ class TransactionGroupRepository implements TransactionGroupRepositoryInterface
|
||||
$return = [];
|
||||
|
||||
foreach ($query as $row) {
|
||||
$return[$row->name] = new Carbon(json_decode($row->data));
|
||||
$return[$row->name] = new Carbon(json_decode($row->data, true, 512, JSON_THROW_ON_ERROR));
|
||||
}
|
||||
|
||||
return new NullArrayObject($return);
|
||||
|
@ -244,7 +244,8 @@ class Steam
|
||||
}
|
||||
|
||||
$currentBalance = bcadd($currentBalance, $amount);
|
||||
$carbon = new Carbon($entry->date);
|
||||
$carbon = new Carbon($entry->date, 'UTC');
|
||||
$carbon->setTimezone(env('TZ'));
|
||||
$date = $carbon->format('Y-m-d');
|
||||
$balances[$date] = $currentBalance;
|
||||
}
|
||||
@ -502,7 +503,9 @@ class Steam
|
||||
->get(['transactions.account_id', DB::raw('MAX(transaction_journals.date) AS max_date')]);
|
||||
|
||||
foreach ($set as $entry) {
|
||||
$list[(int)$entry->account_id] = new Carbon($entry->max_date);
|
||||
$date = new Carbon($entry->max_date,'UTC');
|
||||
$date->setTimezone(env('TZ'));
|
||||
$list[(int)$entry->account_id] = $date;
|
||||
}
|
||||
|
||||
return $list;
|
||||
|
Loading…
Reference in New Issue
Block a user