Skip to content

Commit 11c7dba

Browse files
committed
Merge pull request Eonasdan#1558 from DevNIX/development
Changed the number of tries from 7 to 31
2 parents bb224d2 + 929fe78 commit 11c7dba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/bootstrap-datetimepicker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,8 +1660,8 @@
16601660
var tries = 0;
16611661
while (!isValid(date, 'd')) {
16621662
date.add(1, 'd');
1663-
if (tries === 7) {
1664-
throw 'Tried 7 times to find a valid date';
1663+
if (tries === 31) {
1664+
throw 'Tried 31 times to find a valid date';
16651665
}
16661666
tries++;
16671667
}

0 commit comments

Comments
 (0)