1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-24 01:08:20 +01:00

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

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