Browse Source

fix(nc-gui): use HH instead of hh for copying datetime in formula

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

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

@ -120,7 +120,7 @@ export function useMultiSelect(
textToCopy = textToCopy.replace(/\b(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\+00:00)\b/g, (d: string) => { textToCopy = textToCopy.replace(/\b(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\+00:00)\b/g, (d: string) => {
// TODO(timezone): retrieve the format from the corresponding column meta // TODO(timezone): retrieve the format from the corresponding column meta
// assume hh:mm at this moment // assume hh:mm at this moment
return dayjs(d).utc().local().format('YYYY-MM-DD hh:mm') return dayjs(d).utc().local().format('YYYY-MM-DD HH:mm')
}) })
} }

Loading…
Cancel
Save