This commit is contained in:
@@ -109,6 +109,11 @@ export default {
|
|||||||
|
|
||||||
//is it a valid date?
|
//is it a valid date?
|
||||||
if (!(parsedDate instanceof Date && !isNaN(parsedDate))) {
|
if (!(parsedDate instanceof Date && !isNaN(parsedDate))) {
|
||||||
|
if (window.$gz.dev) {
|
||||||
|
throw new Error(
|
||||||
|
`locale::utcDateToScheduleCompatibleFormatLocalized - Value '${value}' is not parseable`
|
||||||
|
);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -126,7 +131,6 @@ export default {
|
|||||||
timeZone: timeZoneName
|
timeZone: timeZoneName
|
||||||
});
|
});
|
||||||
const parts = formatter.formatToParts(parsedDate);
|
const parts = formatter.formatToParts(parsedDate);
|
||||||
//console.log(parts);
|
|
||||||
|
|
||||||
let p = { year: null, month: null, day: null, hour: null, minute: null };
|
let p = { year: null, month: null, day: null, hour: null, minute: null };
|
||||||
parts.forEach(x => {
|
parts.forEach(x => {
|
||||||
|
|||||||
@@ -390,8 +390,6 @@ export default {
|
|||||||
this.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(this);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
console.log("fetch raw data:", JSON.stringify(res.data));
|
|
||||||
|
|
||||||
this.events = res.data.map(x => {
|
this.events = res.data.map(x => {
|
||||||
return {
|
return {
|
||||||
...x,
|
...x,
|
||||||
@@ -409,11 +407,6 @@ export default {
|
|||||||
)
|
)
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(
|
|
||||||
"fetch events data after processing:",
|
|
||||||
JSON.stringify(this.events)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
window.$gz.errorHandler.handleFormError(error, this);
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
|||||||
Reference in New Issue
Block a user