Skip to content

Commit 0742077

Browse files
committed
Offset date by 1 month for testing
1 parent 7a414db commit 0742077

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/util/now.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
// Util to allow for easy overriding when testing
2-
const getNow = () => new Date();
2+
const getNow = () => {
3+
const date = new Date();
4+
date.setMonth(date.getMonth() + 1);
5+
return date;
6+
};
37

48
export default getNow;

0 commit comments

Comments
 (0)