This commit is contained in:
2021-09-16 19:42:32 +00:00
parent 04c83e19f4
commit 999c285a90
2 changed files with 5 additions and 8 deletions

View File

@@ -109,6 +109,11 @@ export default {
//is it a valid date?
if (!(parsedDate instanceof Date && !isNaN(parsedDate))) {
if (window.$gz.dev) {
throw new Error(
`locale::utcDateToScheduleCompatibleFormatLocalized - Value '${value}' is not parseable`
);
}
return null;
}
@@ -126,7 +131,6 @@ export default {
timeZone: timeZoneName
});
const parts = formatter.formatToParts(parsedDate);
//console.log(parts);
let p = { year: null, month: null, day: null, hour: null, minute: null };
parts.forEach(x => {

View File

@@ -390,8 +390,6 @@ export default {
this.formState.serverError = res.error;
window.$gz.form.setErrorBoxErrors(this);
} else {
console.log("fetch raw data:", JSON.stringify(res.data));
this.events = res.data.map(x => {
return {
...x,
@@ -409,11 +407,6 @@ export default {
)
};
});
console.log(
"fetch events data after processing:",
JSON.stringify(this.events)
);
}
} catch (error) {
window.$gz.errorHandler.handleFormError(error, this);