fix(basic.gblib): NOW keyword is now formatting values with two zeros.
This commit is contained in:
parent
1329dc9fe9
commit
0cd79e6ef1
1 changed files with 5 additions and 2 deletions
|
@ -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.`);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue