diff --git a/js/bootstrap-datetimepicker.js b/js/bootstrap-datetimepicker.js index f66d69c1..6a10cb23 100644 --- a/js/bootstrap-datetimepicker.js +++ b/js/bootstrap-datetimepicker.js @@ -448,7 +448,7 @@ getDate: function () { var d = this.getUTCDate(); - if (d === null) { + if (d === null || typeof d === 'undefined') { return null; } return new Date(d.getTime() + (d.getTimezoneOffset() * 60000));