diff --git a/packages/nc-gui/components/project/spreadsheet/components/editableCell/dateTimePickerCell.vue b/packages/nc-gui/components/project/spreadsheet/components/editableCell/dateTimePickerCell.vue index a0ff275273..c1f338831c 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editableCell/dateTimePickerCell.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editableCell/dateTimePickerCell.vue @@ -30,12 +30,14 @@ export default { computed: { localState: { get() { + // todo : time value correction + if(/^\d{6,}$/.test(this.value)){ return new Date(+this.value); } - return /\dT\d/.test(this.value) ? new Date(this.value.replace(/(\d)T(?=\d)/, '$1 ')) : new Date(this.value); + return /\dT\d/.test(this.value) ? new Date(this.value.replace(/(\d)T(?=\d)/, '$1 ')) : this.value; }, set(val) { // if(/^\d{6,}$/.test(this.value)){ diff --git a/packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue b/packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue index bb17ef1a11..d2905cd5c9 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue @@ -51,7 +51,6 @@