Skip to content

Commit

Permalink
fixes #1787
Browse files Browse the repository at this point in the history
  • Loading branch information
moldcraft committed Jul 15, 2016
1 parent 27db8a3 commit a03327d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ function fw_option_type_date_picker_initialize(object) {
var date = null;

if (options.minDate != null || options.minDate != undefined) {
date = options.minDate.split('-');
defaults.startDate = new Date(date[2], date[1], date[0]);
date = options.minDate.split('-').map(Number);
defaults.startDate = new Date(date[2], date[1] - 1, date[0]);
}

if (options.maxDate != null || options.maxDate != undefined) {
date = options.maxDate.split('-');
defaults.endDate = new Date(date[2], date[1], date[0]);
date = options.maxDate.split('-').map(Number);
defaults.endDate = new Date(date[2], date[1] - 1, date[0]);
}

if (options.weekStart != null || options.weekStart != undefined) {
Expand Down

0 comments on commit a03327d

Please sign in to comment.