Skip to content
Snippets Groups Projects
Unverified Commit 614a9b8f authored by Yash Rajpal's avatar Yash Rajpal Committed by GitHub
Browse files

regression: Show correct date for last day time (#30407)

parent e554607d
No related branches found
No related tags found
No related merge requests found
---
'@rocket.chat/meteor': patch
---
Show correct date for last day time
......@@ -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',
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment