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