Browse Source

fix(nc-gui): copy date value with corresponding format

pull/6870/head
աɨռɢӄաօռɢ 12 months ago
parent
commit
85339540d9
  1. 3
      packages/nc-gui/composables/useMultiSelect/index.ts

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

@ -161,6 +161,9 @@ export function useMultiSelect(
// therefore, we reformat the value here to display with the formatted one
// e.g. 2023-06-03 -> 2023-06
textToCopy = dayjs(textToCopy, dateFormat).format(dateFormat)
} else {
// e.g. 2023-06-03 (in DB) -> 03/06/2023 (in UI)
textToCopy = dayjs(textToCopy, 'YYYY-MM-DD').format(dateFormat)
}
}

Loading…
Cancel
Save