Skip to content

Commit f1bc9a7

Browse files
committed
Resolving issue #376
1 parent 996de8c commit f1bc9a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/timeDateUtil.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ function n_months_ago(reference_date, months) {
9090
past_date.setFullYear(past_date.getFullYear() - diff_year);
9191
past_date.setMonth(past_months - left_over);
9292
}
93-
93+
past_date.setDate(past_date.getDate() + 1); // exclusive
94+
past_date.setUTCHours(0, 0, 0);
9495
return past_date;
9596
}
9697

0 commit comments

Comments
 (0)