From 0128bd29c46f2ed9e17fe41079c551ce6c88a016 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 27 May 2023 12:54:22 +0800 Subject: [PATCH] fix(nc-gui): include negative offset --- packages/nc-gui/composables/useMultiSelect/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/composables/useMultiSelect/index.ts b/packages/nc-gui/composables/useMultiSelect/index.ts index 6bed025eb4..d217b0249d 100644 --- a/packages/nc-gui/composables/useMultiSelect/index.ts +++ b/packages/nc-gui/composables/useMultiSelect/index.ts @@ -125,7 +125,7 @@ export function useMultiSelect( } if (columnObj.uidt === UITypes.Formula) { - textToCopy = textToCopy.replace(/\b(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\+\d{2}:\d{2})\b/g, (d: string) => { + textToCopy = textToCopy.replace(/\b(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}[+-]\d{2}:\d{2})\b/g, (d: string) => { // TODO(timezone): retrieve the format from the corresponding column meta // assume hh:mm at this moment return dayjs(d).utc().local().format('YYYY-MM-DD HH:mm')