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. 6
      packages/nc-gui/components/project/spreadsheet/components/editableCell/dateTimePickerCell.vue

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

@ -42,7 +42,11 @@ export default {
.format('YYYY-MM-DD HH:mm') .format('YYYY-MM-DD HH:mm')
}, },
set(val) { set(val) {
this.$emit('input', val && dayjs(val).format('YYYY-MM-DD HH:mm:ssZ')) 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() { parentListeners() {

Loading…
Cancel
Save