Skip to content

Commit

Permalink
fix: weeks format
Browse files Browse the repository at this point in the history
  • Loading branch information
badosz0 committed Jan 11, 2024
1 parent 49692a9 commit 35c5e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const RELATIVE_MAP: Record<number, string | ((milliseconds: number) => st
[TimeUnits.DAY]: 'a day',
[TimeUnits.DAY * 2]: (milliseconds) => `${Math.floor(milliseconds / TimeUnits.DAY)} days`,
[TimeUnits.WEEK]: 'a week',
[TimeUnits.WEEK * 2]: (milliseconds) => `${Math.floor(milliseconds / TimeUnits.DAY)} weeks`,
[TimeUnits.WEEK * 2]: (milliseconds) => `${Math.floor(milliseconds / TimeUnits.WEEK)} weeks`,
[TimeUnits.MONTH]: 'a month',
[TimeUnits.MONTH * 2]: (milliseconds) => `${Math.floor(milliseconds / TimeUnits.MONTH)} months`,
[TimeUnits.YEAR]: 'a year',
Expand Down

0 comments on commit 35c5e07

Please sign in to comment.