diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index 313ae97..f1b938f 100644 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -1667,7 +1667,7 @@ var datetimepickerFactory = function ($) { clearTimeout(xchangeTimer); xchangeTimer = setTimeout(function () { - if (_xdsoft_datetime.currentTime === undefined || _xdsoft_datetime.currentTime === null) { + if (_xdsoft_datetime.currentTime === undefined || _xdsoft_datetime.currentTime === null || isNaN(_xdsoft_datetime.currentTime.getTime())) { _xdsoft_datetime.currentTime = _xdsoft_datetime.now(); }