From 2dcb7453638ebe0393ede39ae9f28661c4dcceb6 Mon Sep 17 00:00:00 2001 From: Ashutosh00710 Date: Sun, 19 May 2024 15:50:30 +0530 Subject: [PATCH] fix: date additions --- src/fetcher.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fetcher.ts b/src/fetcher.ts index 10ecc81..8675462 100644 --- a/src/fetcher.ts +++ b/src/fetcher.ts @@ -54,8 +54,8 @@ export class Fetcher { let from = '', to = ''; if (customFromDate && customToDate) { - from = moment(customFromDate).add(1, 'days').utc().toISOString(true); - to = moment(customToDate).add(2, 'days').utc().toISOString(true); + from = moment(customFromDate).utc().toISOString(true); + to = moment(customToDate).utc().toISOString(true); } else { const now = moment(); from = moment(now).subtract(days, 'days').utc().toISOString();