mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Removed unnecessary dependencies
Removed unnecessary dependencies from internal properties of Baron Schwartz Date Parsing Library.
This commit is contained in:
parent
705ace4668
commit
aa2e5c8846
@ -793,7 +793,8 @@
|
|||||||
}
|
}
|
||||||
_this.currentTime.setDate(
|
_this.currentTime.setDate(
|
||||||
Math.min(
|
Math.min(
|
||||||
Date.daysInMonth[month],
|
// Day 0 is the last day in the previous month, but we want to know the number of days in the current month, so we need to evaluate the subsequent month (month+1)
|
||||||
|
new Date(_this.currentTime.getFullYear(), month+1, 0).getDate(),
|
||||||
_this.currentTime.getDate()
|
_this.currentTime.getDate()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -811,7 +812,8 @@
|
|||||||
}
|
}
|
||||||
_this.currentTime.setDate(
|
_this.currentTime.setDate(
|
||||||
Math.min(
|
Math.min(
|
||||||
Date.daysInMonth[month],
|
// Day 0 is the last day in the previous month, but we want to know the number of days in the current month, so we need to evaluate the subsequent month (month+1)
|
||||||
|
new Date(_this.currentTime.getFullYear(), month+1, 0).getDate(),
|
||||||
_this.currentTime.getDate()
|
_this.currentTime.getDate()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user