From 106d1c2821c935e4647b35ea671ec4750c975441 Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Fri, 1 Nov 2024 22:06:41 +0000 Subject: [PATCH] Offset date by 1 month for testing --- src/util/now.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/now.ts b/src/util/now.ts index dbf29fc..d4fe40e 100644 --- a/src/util/now.ts +++ b/src/util/now.ts @@ -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;