Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Dec 8, 2015
1 parent 6819833 commit d4b2a51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/react-widgets-moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
},

parse: function parse(value, format, culture) {
return getMoment(culture, value, format).toDate();
return value ? getMoment(culture, value, format).toDate() : null;
},

format: function format(value, _format, culture) {
Expand Down
2 changes: 1 addition & 1 deletion lib/localizers/moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ exports['default'] = function (moment) {
},

parse: function parse(value, format, culture) {
return getMoment(culture, value, format).toDate();
return value ? getMoment(culture, value, format).toDate() : null;
},

format: function format(value, _format, culture) {
Expand Down

0 comments on commit d4b2a51

Please sign in to comment.