This commit is contained in:
2021-09-14 23:07:38 +00:00
parent a09da8e139
commit a976c59c4d

View File

@@ -225,7 +225,9 @@ export default {
calendarHeight: 600,
settingsDialog: false,
//cache display format stuff
timeZoneName: window.$gz.locale.getResolvedTimeZoneName()
timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
languageName: window.$gz.locale.getResolvedLanguage(),
hour12: window.$gz.locale.getHour12()
};
},
mounted() {
@@ -308,7 +310,24 @@ export default {
this.formState.serverError = res.error;
window.$gz.form.setErrorBoxErrors(this);
} else {
// this.events = res.data.map(i => {
// const o = { ...i };
// if (o.start) {
// o.start = new Date(o.start).getTime() / 1000;
// }
// if (o.end) {
// o.end = new Date(o.end).getTime() / 1000;
// }
// return o;
// });
this.events = res.data;
console.log("events", this.events);
//1630040400
//1630015200
//1631660554
//1630040400000
//Message:2021-08-26T22:00:00Z is not a valid timestamp. It must be a Date, number of seconds since Epoch, or a string in the format of YYYY-MM-DD or YYYY-MM-DD hh:mm. Zero-padding is optional and seconds are ignored
}
} catch (error) {
window.$gz.errorHandler.handleFormError(error, this);