Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
feat: add day to TimeAgo
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jan 1, 2022
1 parent 2e1b639 commit 9c8ca92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/peeky-client/src/features/TimeAgo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const rtf = new Intl.RelativeTimeFormat(undefined, {
numeric: 'auto',
})
const units: ([number, Intl.RelativeTimeFormatUnit])[] = [[60, 'minute'], [60, 'hour']]
const units: ([number, Intl.RelativeTimeFormatUnit])[] = [[60, 'minute'], [60, 'hour'], [24, 'day']]
function update () {
let diff = (parsedDate.value.getTime() - Date.now()) / 1000
Expand Down

0 comments on commit 9c8ca92

Please sign in to comment.