From 51f77d21879b58718c84e5483807c78a011008d4 Mon Sep 17 00:00:00 2001 From: Antal Orcsik Date: Tue, 20 Feb 2024 17:46:42 +0100 Subject: [PATCH] fix lastVisit override --- src/js/changelog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/changelog.js b/src/js/changelog.js index 5b559ba..9e9384b 100644 --- a/src/js/changelog.js +++ b/src/js/changelog.js @@ -20,7 +20,7 @@ if (cookieMatch) { } if (overrideLastVisit) { - lastVisitedDate.setDate(lastVisitedDate.getDate() - parseInt(overrideLastVisit)); + lastVisitedDate.setDate((new Date()).getDate() - parseInt(overrideLastVisit)); newLastVisitDate = lastVisitedDate; }