Skip to content

Commit

Permalink
Merge pull request #15685 from r3ps4J/master
Browse files Browse the repository at this point in the history
Fix dateAfter filter changing date object hours
  • Loading branch information
cetincakiroglu authored May 30, 2024
2 parents 7b17bfb + 9764a6e commit b246c59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/components/api/filterservice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,11 @@ export class FilterService {
if (value === undefined || value === null) {
return false;
}
value.setHours(0, 0, 0, 0);

return value.getTime() > filter.getTime();
const valueCopy = new Date(value);
valueCopy.setHours(0, 0, 0, 0);

return valueCopy.getTime() > filter.getTime();
}
};

Expand Down

0 comments on commit b246c59

Please sign in to comment.