From 966dd333b3d35a918895b6e9a00b1f792ef54788 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 29 Apr 2023 19:55:30 +0800 Subject: [PATCH] feat(nc-gui): copy value for mssql --- .../nc-gui/composables/useMultiSelect/convertCellData.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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') }