@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.
@@ -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 monthStr = `${month + 1}`.padStart(2, '0');
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) => {