mirror of
https://github.com/Shadowfita/docmost.git
synced 2026-07-25 01:13:25 +10:00
feat: comments
* create comment * reply to comment thread * edit comment * delete comment * resolve comment
This commit is contained in:
@@ -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