diff --git a/packages/nc-gui/utils/datetimeUtils.ts b/packages/nc-gui/utils/datetimeUtils.ts index 2924b723ff..46ae5ec375 100644 --- a/packages/nc-gui/utils/datetimeUtils.ts +++ b/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` }