From 1bfcbdc8240db09329defcc2823153655524d696 Mon Sep 17 00:00:00 2001 From: munkhjin Date: Tue, 17 Sep 2019 15:58:48 +0800 Subject: [PATCH] fix(deal/task/ticket/growthHack): fix next day filter Closes #567 --- src/data/resolvers/queries/boardUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/resolvers/queries/boardUtils.ts b/src/data/resolvers/queries/boardUtils.ts index 870f23a3d..7366c5470 100644 --- a/src/data/resolvers/queries/boardUtils.ts +++ b/src/data/resolvers/queries/boardUtils.ts @@ -115,8 +115,8 @@ export const generateCommonFilters = async (args: any) => { const tommorrow = moment().add(1, 'days'); filter.closeDate = { - $gte: new Date(tommorrow.startOf('day').format('YYYY-MM-DD')), - $lte: new Date(tommorrow.endOf('day').format('YYYY-MM-DD')), + $gte: new Date(tommorrow.startOf('day').toISOString()), + $lte: new Date(tommorrow.endOf('day').toISOString()), }; }