From 43064857c90d6b21ccfbd56318fb155015e9402f Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 23 May 2023 15:43:23 +0800 Subject: [PATCH] fix(nc-gui): send in UTC when pasting datetime value --- packages/nc-gui/composables/useMultiSelect/convertCellData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/composables/useMultiSelect/convertCellData.ts b/packages/nc-gui/composables/useMultiSelect/convertCellData.ts index f6d52170d1..47eb6e8155 100644 --- a/packages/nc-gui/composables/useMultiSelect/convertCellData.ts +++ b/packages/nc-gui/composables/useMultiSelect/convertCellData.ts @@ -43,7 +43,7 @@ export default function convertCellData( if (!parsedDateTime.isValid()) { throw new Error('Not a valid datetime value') } - return parsedDateTime.format('YYYY-MM-DD HH:mm:ssZ') + return parsedDateTime.utc().format('YYYY-MM-DD HH:mm:ssZ') } case UITypes.Time: { let parsedTime = dayjs(value)