Skip to content

Commit

Permalink
pass correct time arg
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rajpal committed Sep 15, 2023
1 parent 3a3245a commit 3c929f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/client/hooks/useTimeAgo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const useTimeAgo = (): ((time: Date | number | string) => string) => {
(time) => {
return moment(time).calendar(null, {
sameDay: format,
lastDay: moment().calendar('lastDay').replace('LT', format),
lastDay: moment(time).calendar('lastDay').replace('LT', format),
lastWeek: `dddd ${format}`,
sameElse: 'LL',
});
Expand Down

0 comments on commit 3c929f7

Please sign in to comment.