This commit is contained in:
@@ -193,6 +193,12 @@ export default {
|
||||
this.errorMessage = res.error;
|
||||
} else {
|
||||
this.chartOptions.scales.xAxes[0].time.unit = this.settings.interval;
|
||||
res.data.forEach(z => {
|
||||
z.x = new Date(z.x) //convert to locale timezone and output in the closest thing to iso-8601 format
|
||||
.toLocaleString("sv-SE", {
|
||||
timeZone: this.timeZoneName
|
||||
});
|
||||
});
|
||||
this.obj = res.data;
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
@@ -203,6 +203,12 @@ export default {
|
||||
this.errorMessage = res.error;
|
||||
} else {
|
||||
this.chartOptions.scales.xAxes[0].time.unit = this.settings.interval;
|
||||
res.data.forEach(z => {
|
||||
z.x = new Date(z.x) //convert to locale timezone and output in the closest thing to iso-8601 format
|
||||
.toLocaleString("sv-SE", {
|
||||
timeZone: this.timeZoneName
|
||||
});
|
||||
});
|
||||
this.obj = res.data;
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user