From 5915ced72f9a3cf0a3c27a23096b2efb46c289c4 Mon Sep 17 00:00:00 2001 From: nobody Date: Sun, 28 Apr 2024 08:13:42 +0200 Subject: [PATCH] rename method (#1626) --- pages/statistics/statistics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/statistics/statistics.js b/pages/statistics/statistics.js index c81ef3b1..b574ceb0 100644 --- a/pages/statistics/statistics.js +++ b/pages/statistics/statistics.js @@ -128,7 +128,7 @@ statistics._setDateRange = function () { } else if (type === 'year') { days = 365; } else if (type === 'all') { - days = statistics._daysSinceFirstRelease(); + days = statistics._daysSinceYearOfRelease(); } else { statistics._dateRange = [new Date().toISOString().slice(0, 10)]; } @@ -272,7 +272,7 @@ statistics._registerListener = function () { }); }; -statistics._daysSinceFirstRelease = function () { +statistics._daysSinceYearOfRelease = function () { let timeDifference, millisecondsPerDay; timeDifference = new Date() - new Date('2020-01-01');