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