mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Pass date as UTC for graphs
This commit is contained in:
@@ -51,7 +51,7 @@ export default class extends Controller {
|
|||||||
_normalizeDataPoints() {
|
_normalizeDataPoints() {
|
||||||
this._normalDataPoints = (this.dataValue.values || []).map((d) => ({
|
this._normalDataPoints = (this.dataValue.values || []).map((d) => ({
|
||||||
...d,
|
...d,
|
||||||
date: new Date(d.date),
|
date: new Date(`${d.date}T00:00:00Z`),
|
||||||
value: d.value.amount ? +d.value.amount : +d.value,
|
value: d.value.amount ? +d.value.amount : +d.value,
|
||||||
currency: d.value.currency,
|
currency: d.value.currency,
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user