mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Match Plaid holding values on current day (#2212)
* Match Plaid holding values on current day * Fix chart timezone issue * Add timezone tests for syncs * Hide sidebars on trades test
This commit is contained in:
parent
470b753833
commit
2000f05453
16 changed files with 242 additions and 21 deletions
|
@ -33,7 +33,7 @@ class Assistant::Function::GetAccounts < Assistant::Function
|
|||
def historical_balances(account)
|
||||
start_date = [ account.start_date, 5.years.ago.to_date ].max
|
||||
period = Period.custom(start_date: start_date, end_date: Date.current)
|
||||
balance_series = account.balance_series(period: period, interval: "1 month")
|
||||
balance_series = account.balance_series(period: period, interval: "1 month", timezone: family.timezone)
|
||||
|
||||
to_ai_time_series(balance_series)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue