mirror of https://github.com/nocodb/nocodb
Muhammed Mustafa
2 years ago
committed by
braks
3 changed files with 10 additions and 11 deletions
@ -1,10 +0,0 @@ |
|||||||
import dayjs from 'dayjs' |
|
||||||
|
|
||||||
import * as relativeTime from 'dayjs/plugin/relativeTime' |
|
||||||
import * as utc from 'dayjs/plugin/utc' |
|
||||||
dayjs.extend(utc) |
|
||||||
dayjs.extend(relativeTime) |
|
||||||
|
|
||||||
export function calculateDiff(date) { |
|
||||||
return dayjs.utc(date).fromNow() |
|
||||||
} |
|
Loading…
Reference in new issue