Skip to content

Commit

Permalink
Offset date by 1 month for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 committed Nov 7, 2024
1 parent d5577c8 commit ace88b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util/now.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// Util to allow for easy overriding when testing
const getNow = () => new Date();
const getNow = () => {
const date = new Date();
date.setMonth(date.getMonth() + 1);
return date;
};

export default getNow;

0 comments on commit ace88b9

Please sign in to comment.