This commit is contained in:
@@ -390,7 +390,30 @@ export default {
|
||||
this.formState.serverError = res.error;
|
||||
window.$gz.form.setErrorBoxErrors(this);
|
||||
} else {
|
||||
this.events = res.data;
|
||||
console.log("fetch raw data:", JSON.stringify(res.data));
|
||||
|
||||
this.events = res.data.map(x => {
|
||||
return {
|
||||
...x,
|
||||
start: window.$gz.locale.utcDateToScheduleCompatibleFormatLocalized(
|
||||
x.start,
|
||||
this.timeZoneName,
|
||||
this.languageName,
|
||||
this.hour12
|
||||
),
|
||||
end: window.$gz.locale.utcDateToScheduleCompatibleFormatLocalized(
|
||||
x.end,
|
||||
this.timeZoneName,
|
||||
this.languageName,
|
||||
this.hour12
|
||||
)
|
||||
};
|
||||
});
|
||||
|
||||
console.log(
|
||||
"fetch events data after processing:",
|
||||
JSON.stringify(this.events)
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
window.$gz.errorHandler.handleFormError(error, this);
|
||||
|
||||
Reference in New Issue
Block a user