diff --git a/packages/nc-gui/composables/useMultiSelect/convertCellData.ts b/packages/nc-gui/composables/useMultiSelect/convertCellData.ts index 65cfc7c08f..1f333f0f4f 100644 --- a/packages/nc-gui/composables/useMultiSelect/convertCellData.ts +++ b/packages/nc-gui/composables/useMultiSelect/convertCellData.ts @@ -8,6 +8,7 @@ export default function convertCellData( args: { from: UITypes; to: UITypes; value: any; column: ColumnType; appInfo: AppInfo }, isMysql = false, isSqlite = false, + isMssql = false, isXcdbBase = false, ) { const { from, to, value } = args @@ -46,7 +47,9 @@ export default function convertCellData( } if (isXcdbBase) { if (isMysql) { - return parsedDateTime?.format('YYYY-MM-DD HH:mm:ss') + return parsedDateTime.format('YYYY-MM-DD HH:mm:ss') + } else if (isMssql) { + return parsedDateTime.format('YYYY-MM-DD HH:mm:ssZ') } else { return parsedDateTime.utc(true).format('YYYY-MM-DD HH:mm:ssZ') }