Browse Source

refactor(nc-gui): add comment

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

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

@ -124,6 +124,9 @@ export function useMultiSelect(
d = dayjs(textToCopy, isMysql(columnObj.base_id) ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm:ssZ')
}
// users can change the datetime format in UI
// `textToCopy` would be always in YYYY-MM-DD HH:mm:ss(Z) format
// therefore, here we reformat to the correct datetime format based on the meta
textToCopy = d.format(constructDateTimeFormat(columnObj))
if (!dayjs(textToCopy).isValid()) {

Loading…
Cancel
Save