Browse Source

refactor(nc-gui): update comments

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

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

@ -48,7 +48,7 @@ export default function convertCellData(
if (isMysql) { if (isMysql) {
let res = `${parsedDateTime.format('YYYY-MM-DD HH:mm:ss')}` let res = `${parsedDateTime.format('YYYY-MM-DD HH:mm:ss')}`
if (!dayjs.isDayjs(value)) { if (!dayjs.isDayjs(value)) {
// UTC + 'Z' // value is a UTC string, we append 'Z' to `res`
res += 'Z' res += 'Z'
} }
return res return res
@ -64,7 +64,7 @@ export default function convertCellData(
return parsedDateTime return parsedDateTime
} }
} }
// TODO(timezone): keep ext db as it is // External DB - keep it as it is
return parsedDateTime.format(isMysql ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm:ssZ') return parsedDateTime.format(isMysql ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm:ssZ')
} }
case UITypes.Time: { case UITypes.Time: {

Loading…
Cancel
Save