fix(basic.gblib): NOW keyword is now formatting values with two zeros.

This commit is contained in:
Rodrigo Rodriguez 2021-08-15 17:10:26 -03:00
parent 1329dc9fe9
commit 0cd79e6ef1

View file

@ -351,10 +351,15 @@ export class SystemKeywords {
function isValidDate(dt) { function isValidDate(dt) {
let date = SystemKeywords.getDateFromLocaleString(dt, contentLocale); let date = SystemKeywords.getDateFromLocaleString(dt, contentLocale);
if (!date) {
return false;
}
if (!(date instanceof Date)) { if (!(date instanceof Date)) {
date = new Date(date); date = new Date(date);
} }
return !isNaN(date.valueOf()); return !isNaN(date.valueOf());
} }
@ -488,8 +493,6 @@ export class SystemKeywords {
break; break;
} }
break; break;
} else {
GBLog.info(`BASIC: FIND with NULL date in filter.`);
} }
} }
}); });