Fix relative time display for everything older than 1 day
This commit is contained in:
@ -34,7 +34,7 @@ export function relativeTime(seconds: number): string | null {
|
||||
}
|
||||
const maxRelative = day * 31;
|
||||
if (seconds < maxRelative) {
|
||||
return `${seconds % day}d`;
|
||||
return `${Math.floor(seconds / day)}d`;
|
||||
}
|
||||
return null;
|
||||
}
|
Reference in New Issue
Block a user