From 06d9e94de9487142c61107c04bdc2fdb3499ab8b Mon Sep 17 00:00:00 2001 From: Anbarasu Date: Tue, 12 Nov 2024 22:01:55 +0530 Subject: [PATCH] fix: Invalid Date error format in calendar view (#9809) --- packages/nc-gui/components/smartsheet/PlainCell.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/PlainCell.vue b/packages/nc-gui/components/smartsheet/PlainCell.vue index cbbafd7a01..04f751d588 100644 --- a/packages/nc-gui/components/smartsheet/PlainCell.vue +++ b/packages/nc-gui/components/smartsheet/PlainCell.vue @@ -94,7 +94,7 @@ const getDateTimeValue = (modelValue: string | null, col: ColumnType) => { const isXcDB = isXcdbBase(col.source_id) if (!isXcDB) { - return dayjs(/^\d+$/.test(modelValue) ? +modelValue : modelValue, dateTimeFormat).format(dateTimeFormat) + return dayjs(/^\d+$/.test(modelValue) ? +modelValue : modelValue).format(dateTimeFormat) } if (isMssql(col.source_id)) {