From 21004916c7481da4f9a99383835c4fd48f717eaa Mon Sep 17 00:00:00 2001 From: lmar Date: Fri, 7 Jun 2013 00:09:19 +0300 Subject: [PATCH] Update bootstrap-datetimepicker.js Fix bug that causes the input to get removed when date/time entered equals "1970-01-01 00:00:00 UTC" (beginning of unix epoch) --- src/js/bootstrap-datetimepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/bootstrap-datetimepicker.js b/src/js/bootstrap-datetimepicker.js index 591bf42a5..69707a190 100644 --- a/src/js/bootstrap-datetimepicker.js +++ b/src/js/bootstrap-datetimepicker.js @@ -181,7 +181,7 @@ }, setValue: function(newDate) { - if (!newDate) { + if (newDate === null) { this._unset = true; } else { this._unset = false;