Skip to content

Commit 5bd63e8

Browse files
committed
Round relative year values
1 parent 9679edb commit 5bd63e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/tfc/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,6 @@ export function RelativeTimeFormat(d: Date): string {
161161
const months = Math.round(diffSeconds / SECONDS_IN_MONTH);
162162
return rtf.format(-months, 'month');
163163
}
164-
const years = diffSeconds / SECONDS_IN_YEAR;
164+
const years = Math.round(diffSeconds / SECONDS_IN_YEAR);
165165
return rtf.format(-years, 'year');
166166
}

0 commit comments

Comments
 (0)