This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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