@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
|
@@ -748,8 +748,7 @@ const generateDateMatrix = (month, year, minWeeks = 5, firstDayOfWeek) => {
|
|
|
748
748
|
// generate a new matrix with 5 or 6 rows (depending on number of days in that month)
|
|
749
749
|
const matrix = new Array(minWeeks);
|
|
750
750
|
matrix.fill([]);
|
|
751
|
-
const
|
|
752
|
-
const date = new Date(`${year}-${monthStr}-01`);
|
|
751
|
+
const date = new Date(year, month, 1);
|
|
753
752
|
const firstDate = firstCalendarDate(date, firstDayOfWeek);
|
|
754
753
|
// for each week in that month
|
|
755
754
|
const dateMatrix = matrix.map((_, weekOffset) => {
|