|
|
@ -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') |
|
|
|
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)) |
|
|
|
textToCopy = d.format(constructDateTimeFormat(columnObj)) |
|
|
|
|
|
|
|
|
|
|
|
if (!dayjs(textToCopy).isValid()) { |
|
|
|
if (!dayjs(textToCopy).isValid()) { |
|
|
|