Browse Source

fix(nc-gui): copy as it is for mysql

pull/5642/head
Wing-Kam Wong 2 years ago
parent
commit
6bee408c2f
  1. 2
      packages/nc-gui/composables/useMultiSelect/index.ts

2
packages/nc-gui/composables/useMultiSelect/index.ts

@ -124,7 +124,7 @@ export function useMultiSelect(
d = dayjs(textToCopy, isMysql(columnObj.base_id) ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm:ssZ')
}
if (isXcdbBase(meta.value?.base_id)) {
if (isMssql(meta.value?.base_id)) {
if (isMssql(meta.value?.base_id) || isMysql(meta.value?.base_id)) {
textToCopy = d.format(constructDateTimeFormat(columnObj))
} else {
textToCopy = d.utc(true).local().format(constructDateTimeFormat(columnObj))

Loading…
Cancel
Save