Skip to content

Commit

Permalink
fix(calendar): support dateobject given for parse.date as for initial…
Browse files Browse the repository at this point in the history
…Date setting
  • Loading branch information
lubber-de authored and Sean committed Apr 5, 2019
1 parent 58cf41a commit 1a4938a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/definitions/modules/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,9 @@ $.fn.calendar.settings = {

parser: {
date: function (text, settings) {
if (text instanceof Date) {
return text;
}
if (!text) {
return null;
}
Expand Down

0 comments on commit 1a4938a

Please sign in to comment.