Browse Source

fix(nc-gui): send in UTC when pasting datetime value

pull/5719/head
Wing-Kam Wong 2 years ago
parent
commit
43064857c9
  1. 2
      packages/nc-gui/composables/useMultiSelect/convertCellData.ts

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

@ -43,7 +43,7 @@ export default function convertCellData(
if (!parsedDateTime.isValid()) { if (!parsedDateTime.isValid()) {
throw new Error('Not a valid datetime value') 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: { case UITypes.Time: {
let parsedTime = dayjs(value) let parsedTime = dayjs(value)

Loading…
Cancel
Save