From 1e1677695cb0d2a98963421ec6a7366a8b8acfe9 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Wed, 10 Mar 2021 09:51:50 -0600 Subject: [PATCH] Set time ms rather than hours (#250) --- src/models/response/sendResponse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/response/sendResponse.ts b/src/models/response/sendResponse.ts index 7111e548a6..4c073dd18a 100644 --- a/src/models/response/sendResponse.ts +++ b/src/models/response/sendResponse.ts @@ -63,7 +63,7 @@ export class SendResponse implements BaseResponse { private static getStandardDeletionDate(days: number) { const d = new Date(); - d.setHours(d.getHours() + (days * 24)); + d.setTime(d.getTime() + (days * 86400000)) // ms per day return d; }