rename method (#1626)

This commit is contained in:
nobody 2024-04-28 08:13:42 +02:00
parent c4f6c3c798
commit 5915ced72f
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 2 additions and 2 deletions

View File

@ -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');