Follow-up high fixes on date refactor (#15553)

This PR fixes important bugs on date filter handling following-up date
refactor.

Fixes : https://github.com/twentyhq/core-team-issues/issues/1814
This commit is contained in:
Lucas Bordeau
2025-11-03 17:51:42 +01:00
committed by GitHub
parent bafc0496b1
commit b33b38cb02
16 changed files with 119 additions and 213 deletions
@@ -8,10 +8,7 @@ import {
subWeeks,
subYears,
} from 'date-fns';
import {
getPlainDateFromDate,
type RelativeDateFilter,
} from 'twenty-shared/utils';
import { type RelativeDateFilter } from 'twenty-shared/utils';
import {
evaluateRelativeDateFilter,
@@ -472,7 +469,6 @@ describe('Relative Date Filter Utils', () => {
direction: 'THIS',
unit: 'WEEK',
firstDayOfTheWeek: 'MONDAY',
referenceDayAsString: getPlainDateFromDate(now),
};
expect(