Skip to content

Commit 12afbf0

Browse files
committed
Set date instead of UTC to get current day
1 parent 9b8caf2 commit 12afbf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ endDate.setUTCMinutes(59);
1818
endDate.setUTCSeconds(59);
1919
endDate.setUTCMilliseconds(999);
2020

21-
startDate.setUTCDate(endDate.getDate() - days);
21+
startDate.setDate(endDate.getDate() - days);
2222

2323

2424
let timezone = startDate.getTimezoneOffset() / 60 * -100;

0 commit comments

Comments
 (0)