mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19:39 +02:00
Pass date as UTC for graphs
This commit is contained in:
parent
81d604f3d4
commit
d1b506d16c
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ export default class extends Controller {
|
|||
_normalizeDataPoints() {
|
||||
this._normalDataPoints = (this.dataValue.values || []).map((d) => ({
|
||||
...d,
|
||||
date: new Date(d.date),
|
||||
date: new Date(`${d.date}T00:00:00Z`),
|
||||
value: d.value.amount ? +d.value.amount : +d.value,
|
||||
currency: d.value.currency,
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue