Set time ms rather than hours (#250)

This commit is contained in:
Matt Gibson 2021-03-10 09:51:50 -06:00 committed by GitHub
parent 80f6ae675f
commit 1e1677695c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}