This commit is contained in:
2022-02-28 19:38:11 +00:00
parent 6827522b01
commit cbf971db77
3 changed files with 14 additions and 0 deletions

View File

@@ -47,6 +47,8 @@ seeder wo need new fields and generate data to show off and test kpi widgets and
https://www.ayanova.com/AyaNova7webHelp/index.html?dashboard.htm
time zone conversion at client
- Widgets to make for beta in order of priority
**MUST HAVE***
* LIST Unassigned work orders list for service manager

View File

@@ -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) {

View File

@@ -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) {