mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-26 14:33:31 +10:00
feat: comments
* create comment * reply to comment thread * edit comment * delete comment * resolve comment
This commit is contained in:
5
client/src/lib/time-ago.ts
Normal file
5
client/src/lib/time-ago.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { formatDistanceStrict } from 'date-fns';
|
||||
|
||||
export function timeAgo(date: Date){
|
||||
return formatDistanceStrict(new Date(date), new Date(), { addSuffix: true })
|
||||
}
|
||||
Reference in New Issue
Block a user