Skip to content

Commit

Permalink
fix: date additions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh00710 committed May 19, 2024
1 parent f4ed6ed commit 2dcb745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2dcb745

Please sign in to comment.