From 18dc415bb6129305b0eb1de565bf9d0a4c0f25b5 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 9 May 2023 20:47:09 +0800 Subject: [PATCH] refactor(nc-gui): convert cell date time logic --- packages/nc-gui/composables/useMultiSelect/convertCellData.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/nc-gui/composables/useMultiSelect/convertCellData.ts b/packages/nc-gui/composables/useMultiSelect/convertCellData.ts index e8d3af07a5..8193ef5b05 100644 --- a/packages/nc-gui/composables/useMultiSelect/convertCellData.ts +++ b/packages/nc-gui/composables/useMultiSelect/convertCellData.ts @@ -48,9 +48,7 @@ export default function convertCellData( // convert back to utc // e.g. 2023-05-09T19:41:49+08:00 -> 2023-05-09 11:41:49 if (isMysql) { - return `${parsedDateTime.utc().format('YYYY-MM-DD HH:mm:ss')}` - } else if (isMssql) { - return parsedDateTime.utc().format('YYYY-MM-DD HH:mm:ssZ') + return parsedDateTime.utc().format('YYYY-MM-DD HH:mm:ss') } else { return parsedDateTime.utc().format('YYYY-MM-DD HH:mm:ssZ') }