Browse Source

fix(nc-gui): show 1y ago if days diff is greater than 360

pull/9419/head
Ramesh Mane 4 months ago
parent
commit
906780d9ea
  1. 4
      packages/nc-gui/utils/datetimeUtils.ts

4
packages/nc-gui/utils/datetimeUtils.ts

@ -49,5 +49,9 @@ export const timeAgo = (date: string) => {
if (months < 12) {
return `${months}mo ago`
}
if (years < 1) {
return `1y ago`
}
return `${years}y ago`
}

Loading…
Cancel
Save