Browse Source

fix: incorrect datetime for MySQL

Signed-off-by: Mert Ersoy <mertmit99@gmail.com>
pull/1415/head
Mert Ersoy 3 years ago
parent
commit
bc03f73408
  1. 4
      packages/nc-gui/components/project/spreadsheet/components/editableCell/dateTimePickerCell.vue

4
packages/nc-gui/components/project/spreadsheet/components/editableCell/dateTimePickerCell.vue

@ -42,8 +42,12 @@ export default {
.format('YYYY-MM-DD HH:mm')
},
set(val) {
if(this.$parent.sqlUi.name == 'MysqlUi') {
this.$emit('input', val && dayjs(val).format('YYYY-MM-DD HH:mm:ss'))
} else {
this.$emit('input', val && dayjs(val).format('YYYY-MM-DD HH:mm:ssZ'))
}
}
},
parentListeners() {
const $listeners = {}

Loading…
Cancel
Save