Skip to content

Commit 14c0602

Browse files
committed
✅ test: fix fieldDateTime test
1 parent d908f39 commit 14c0602

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/fields/fieldDateTime.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@
4848
4949
ready() {
5050
if ($.fn.datetimepicker) {
51-
$(this.$el).datetimepicker(this.schema.dateTimePickerOptions);
52-
//$(this.$el).data("DateTimePicker").date(this.formatValueToField(this.value));
51+
let self = this;
52+
$(this.$el).datetimepicker(defaults(this.schema.dateTimePickerOptions || {}, {
53+
format: inputFormat
54+
}));
5355
}
5456
else
5557
console.warn("Bootstrap datetimepicker library is missing. Please download from https://eonasdan.github.io/bootstrap-datetimepicker/ and load the script and CSS in the HTML head section!");

0 commit comments

Comments
 (0)