Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

Commit

Permalink
set null rather new Date instance
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpatters0n committed Sep 30, 2015
1 parent 15019f3 commit 2b5d425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/bootstrap-datetimepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@
},
parseDate: function (date, format, language, type) {
if (!(/^(\d+-?|\d+\/?|.)+\d.*/).test(date)) {
date = new Date;
return null;
}
if (date instanceof Date) {
var dateUTC = new Date(date.valueOf() - date.getTimezoneOffset() * 60000);
Expand Down

0 comments on commit 2b5d425

Please sign in to comment.