This commit is contained in:
Yuri Kuznetsov
2022-11-19 15:56:30 +02:00
parent f5b6876626
commit 9d3aaebf24
+1 -15
View File
@@ -121,7 +121,7 @@ define('views/fields/datetime', ['views/fields/date', 'lib!moment'], function (D
return this.getDateTime().toDisplayDateTime(value);
}
var timeFormat = this.getDateTime().timeFormat;
let timeFormat = this.getDateTime().timeFormat;
if (this.params.hasSeconds) {
timeFormat = timeFormat.replace(/:mm/, ':mm:ss');
@@ -248,20 +248,6 @@ define('views/fields/datetime', ['views/fields/date', 'lib!moment'], function (D
}
},
update: function (value) {
if (this.mode === this.MODE_EDIT) {
let pair = this.splitDatetime(value);
this.$date.val(pair[0]);
this.$time.val(pair[1]);
return;
}
this.setup();
this.render();
},
parse: function (string) {
return this.getDateTime().fromDisplay(string);
},