We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 90fd191 + f0067a4 commit 0c35494Copy full SHA for 0c35494
js/bootstrap-datepicker.js
@@ -80,8 +80,8 @@
80
break;
81
}
82
83
- this.weekStart = options.weekStart||this.element.data('date-weekstart')||dates[this.language].weekStart||0;
84
- this.weekEnd = this.weekStart == 0 ? 6 : this.weekStart - 1;
+ this.weekStart = ((options.weekStart||this.element.data('date-weekstart')||dates[this.language].weekStart||0) % 7);
+ this.weekEnd = ((this.weekStart + 6) % 7);
85
this.startDate = -Infinity;
86
this.endDate = Infinity;
87
this.setStartDate(options.startDate||this.element.data('date-startdate'));
0 commit comments