@sebgroup/green-angular 7.2.1 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/sebgroup-green-angular-src-v-angular-datepicker.mjs +1 -2
- package/fesm2022/sebgroup-green-angular-src-v-angular-datepicker.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-v-angular.mjs +1 -2
- package/fesm2022/sebgroup-green-angular-v-angular.mjs.map +1 -1
- package/package.json +10 -10
|
@@ -1633,8 +1633,7 @@ const generateDateMatrix = (month, year, minWeeks = 5, firstDayOfWeek) => {
|
|
|
1633
1633
|
// generate a new matrix with 5 or 6 rows (depending on number of days in that month)
|
|
1634
1634
|
const matrix = new Array(minWeeks);
|
|
1635
1635
|
matrix.fill([]);
|
|
1636
|
-
const
|
|
1637
|
-
const date = new Date(`${year}-${monthStr}-01`);
|
|
1636
|
+
const date = new Date(year, month, 1);
|
|
1638
1637
|
const firstDate = firstCalendarDate(date, firstDayOfWeek);
|
|
1639
1638
|
// for each week in that month
|
|
1640
1639
|
const dateMatrix = matrix.map((_, weekOffset) => {
|