diff --git a/datetimewidget/static/js/bootstrap-datetimepicker.js b/datetimewidget/static/js/bootstrap-datetimepicker.js index 9ba9888..1197ed9 100644 --- a/datetimewidget/static/js/bootstrap-datetimepicker.js +++ b/datetimewidget/static/js/bootstrap-datetimepicker.js @@ -122,7 +122,7 @@ this.startViewMode = 2; if ('startView' in options) { - this.startViewMode = options.startView; + this.startViewMode = parseInt(options.startView); } else if ('startView' in this.element.data()) { this.startViewMode = this.element.data('start-view'); }