From 9d9670bdd04eaf362e71db7361d13e2ecac21017 Mon Sep 17 00:00:00 2001 From: 1337Nerd <26494273+1337Nerd@users.noreply.github.com> Date: Wed, 11 Oct 2023 17:25:08 -0500 Subject: [PATCH] Change date to days Co-authored-by: Bill Thornton --- src/components/activitylog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/activitylog.js b/src/components/activitylog.js index 131095262d..7a1a2d59f6 100644 --- a/src/components/activitylog.js +++ b/src/components/activitylog.js @@ -65,7 +65,7 @@ function reloadData(instance, elem, apiClient, startIndex, limit) { limit ||= parseInt(elem.getAttribute('data-activitylimit') || '7', 10); const minDate = new Date(); const hasUserId = toBoolean(elem.getAttribute('data-useractivity'), true); - const dateOffset = hasUserId ? 1 : 7; // one day back if user id, otherwise one week + const daysOffset = hasUserId ? 1 : 7; // one day back if user id, otherwise one week // TODO: Use date-fns minDate.setTime(minDate.getTime() - dateOffset * 24 * 60 * 60 * 1000);