Merge pull request #428 from vzverev78/master

fixed sync of input value to calendar when using MomentJS
This commit is contained in:
Valeriy 2016-04-07 12:28:24 +05:00
commit 1d2cb002aa

View File

@ -367,7 +367,7 @@ jQuery('#_datetimepicker_weekends_disable').datetimepicker({
<pre><code data-language="javascript">$.datetimepicker.setDateFormatter({
parseDate: function (date, format) {
var d = moment(date, format);
return d.isValid() ? d : false;
return d.isValid() ? d.toDate() : false;
},
formatDate: function (date, format) {