This commit is contained in:
Tim Baek
2026-02-08 03:42:57 +04:00
parent 690686f3c7
commit 59b98ab730

View File

@@ -63,7 +63,9 @@
const hours = Math.floor(minutes / 60);
const days = Math.floor(hours / 24);
const weeks = Math.floor(days / 7);
const years = Math.floor(days / 365);
if (years > 0) return `${years}y`;
if (weeks > 0) return `${weeks}w`;
if (days > 0) return `${days}d`;
if (hours > 0) return `${hours}h`;