fixed sync of input value to calendar when using MomentJS

This commit is contained in:
Vasiliy Zverev 2016-04-06 20:39:42 +03:00
parent 2266845f52
commit 4e3fc0b0ad

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) {