From e6ed5f6d8da6aa875ce86e63d33f040cac3eecc9 Mon Sep 17 00:00:00 2001 From: junlu592 Date: Fri, 21 Nov 2025 12:17:37 +0100 Subject: [PATCH] reverted changes in time.ts --- ts/lib/tslib/time.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ts/lib/tslib/time.ts b/ts/lib/tslib/time.ts index 0e6330f38..25d70eef3 100644 --- a/ts/lib/tslib/time.ts +++ b/ts/lib/tslib/time.ts @@ -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, }); } }