diff --git a/src/app/components/api/filterservice.ts b/src/app/components/api/filterservice.ts index 7d97e0d3d66..bae428d6cc7 100644 --- a/src/app/components/api/filterservice.ts +++ b/src/app/components/api/filterservice.ts @@ -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(); } };