Skip to content

Commit a9f42fd

Browse files
tomas-sexenianBeta Bot
authored andcommitted
Cherry pick branch 'genexuslabs:broken-age' into beta
1 parent 21ab24b commit a9f42fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common/src/main/java/com/genexus/CommonUtil.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,10 @@ public static int age(Date fn, Date today)
16001600
{
16011601
Date fnDate = resetTime(fn);
16021602
Date todayDate = resetTime(today);
1603+
Date sentinel = newNullDate();
1604+
if (fnDate.equals(sentinel) || todayDate.equals(sentinel)) {
1605+
return 0;
1606+
}
16031607

16041608
int age = 0;
16051609
int multiplier = 1;

0 commit comments

Comments
 (0)