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 => {