Browse Source

refactor(nc-gui): convert cell date time logic

pull/5642/head
Wing-Kam Wong 2 years ago
parent
commit
18dc415bb6
  1. 4
      packages/nc-gui/composables/useMultiSelect/convertCellData.ts

4
packages/nc-gui/composables/useMultiSelect/convertCellData.ts

@ -48,9 +48,7 @@ export default function convertCellData(
// convert back to utc // convert back to utc
// e.g. 2023-05-09T19:41:49+08:00 -> 2023-05-09 11:41:49 // e.g. 2023-05-09T19:41:49+08:00 -> 2023-05-09 11:41:49
if (isMysql) { if (isMysql) {
return `${parsedDateTime.utc().format('YYYY-MM-DD HH:mm:ss')}` return parsedDateTime.utc().format('YYYY-MM-DD HH:mm:ss')
} else if (isMssql) {
return parsedDateTime.utc().format('YYYY-MM-DD HH:mm:ssZ')
} else { } else {
return parsedDateTime.utc().format('YYYY-MM-DD HH:mm:ssZ') return parsedDateTime.utc().format('YYYY-MM-DD HH:mm:ssZ')
} }

Loading…
Cancel
Save