Browse Source

feat(nc-gui): copy value for mssql

pull/5601/head
Wing-Kam Wong 2 years ago
parent
commit
966dd333b3
  1. 5
      packages/nc-gui/composables/useMultiSelect/convertCellData.ts

5
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')
}

Loading…
Cancel
Save