Skip to content

Commit

Permalink
fix(basic.gblib): NOW keyword is now formatting values with two zeros.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Aug 15, 2021
1 parent 1329dc9 commit 0cd79e6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/basic.gblib/services/SystemKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,15 @@ export class SystemKeywords {

function isValidDate(dt) {
let date = SystemKeywords.getDateFromLocaleString(dt, contentLocale);
if (!date) {

return false;
}

if (!(date instanceof Date)) {
date = new Date(date);
}

return !isNaN(date.valueOf());
}

Expand Down Expand Up @@ -488,8 +493,6 @@ export class SystemKeywords {
break;
}
break;
} else {
GBLog.info(`BASIC: FIND with NULL date in filter.`);
}
}
});
Expand Down

0 comments on commit 0cd79e6

Please sign in to comment.