We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a414db commit 0742077Copy full SHA for 0742077
src/util/now.ts
@@ -1,4 +1,8 @@
1
// Util to allow for easy overriding when testing
2
-const getNow = () => new Date();
+const getNow = () => {
3
+ const date = new Date();
4
+ date.setMonth(date.getMonth() + 1);
5
+ return date;
6
+};
7
8
export default getNow;
0 commit comments