Re-added date ranges.

This commit is contained in:
2019-12-18 02:42:55 +01:00
parent 3845c3f52d
commit 9b17add4e2
7 changed files with 53 additions and 41 deletions

View File

@@ -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',
}),
};