forked from DebaucheryLibrarian/traxxx
Re-added date ranges.
This commit is contained in:
@@ -2,16 +2,16 @@ import dayjs from 'dayjs';
|
||||
|
||||
const dateRanges = {
|
||||
new: () => ({
|
||||
after: dayjs(new Date(0)).format('YYYY-MM-DD'),
|
||||
before: dayjs(new Date()).format('YYYY-MM-DD'),
|
||||
after: '1900-01-01',
|
||||
before: dayjs(new Date()).add(1, 'day').format('YYYY-MM-DD'),
|
||||
}),
|
||||
upcoming: () => ({
|
||||
after: dayjs(new Date()).format('YYYY-MM-DD'),
|
||||
before: dayjs(new Date(2 ** 42)).format('YYYY-MM-DD'),
|
||||
before: '2100-01-01',
|
||||
}),
|
||||
all: () => ({
|
||||
after: dayjs(new Date(0)).format('YYYY-MM-DD'),
|
||||
before: dayjs(new Date(2 ** 42)).format('YYYY-MM-DD'),
|
||||
after: '1900-01-01',
|
||||
before: '2100-01-01',
|
||||
}),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user