1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 13:19:39 +02:00

Pass date as UTC for graphs
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

This commit is contained in:
Zach Gollwitzer 2024-11-19 16:23:21 -05:00
parent 81d604f3d4
commit d1b506d16c

View file

@ -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,
}));