Skip to content

Commit

Permalink
Update datepicker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hxmwr authored Oct 31, 2017
1 parent 65c3a37 commit e67cafc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@
defaults = $.extend(defaults, options);

this.id = generateUniqueId();
today = Date.now();
today = Math.floor(Date.now()/(24*3600*1000))*(24*3600*1000);
currentOffset = getOffset(today);
$domContainer = $(defaults.container);
$domMain = $(Templates.panel);
Expand Down Expand Up @@ -1710,4 +1710,4 @@
};

return new DatePicker(opts);
}, Zepto);
}, Zepto);

0 comments on commit e67cafc

Please sign in to comment.