Browse Source

fix(nc-gui): add utc in timeAgo

pull/5601/head
Wing-Kam Wong 2 years ago
parent
commit
9e2eefea05
  1. 2
      packages/nc-gui/utils/dateTimeUtils.ts

2
packages/nc-gui/utils/dateTimeUtils.ts

@ -1,7 +1,7 @@
import dayjs from 'dayjs'
export const timeAgo = (date: any) => {
return dayjs(date).fromNow()
return dayjs.utc(date).fromNow()
}
export const dateFormats = [

Loading…
Cancel
Save