This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user