reverted changes in time.ts

This commit is contained in:
junlu592 2025-11-21 12:17:37 +01:00
parent b674bd142c
commit e6ed5f6d8d

View file

@ -178,11 +178,9 @@ export function dayLabel(daysStart: number, daysEnd: number): string {
daysEnd: daysEnd - 1,
});
} else {
const mostRecent = daysEnd <= 0 ? Math.abs(daysEnd - 1) : 0;
const oldest = -daysStart;
return tr.statisticsDaysAgoRange({
daysStart: mostRecent,
daysEnd: oldest,
daysStart: Math.abs(daysEnd - 1),
daysEnd: -daysStart,
});
}
}