@syncfusion/ej2-schedule 19.3.53 → 19.3.55

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.
@@ -3545,10 +3545,10 @@ function weeklyType(startDate, endDate, data, ruleObject) {
3545
3545
  let startDateDiff = DAYINDEX.indexOf(DAYINDEX[tempDate.getDay()]) - wkstIndex;
3546
3546
  startDateDiff = startDateDiff === -1 ? 6 : startDateDiff;
3547
3547
  const weekstartDate = addDays(tempDate, -startDateDiff);
3548
- const weekendDate = addDays(weekstartDate, 6);
3548
+ let weekendDate = addDays(weekstartDate, 6);
3549
3549
  let compareTempDate = new Date(tempDate.getTime());
3550
- resetTime(weekendDate);
3551
- resetTime(compareTempDate);
3550
+ weekendDate = resetTime(weekendDate);
3551
+ compareTempDate = resetTime(compareTempDate);
3552
3552
  while (weekendDate >= compareTempDate) {
3553
3553
  if (expectedDays.indexOf(DAYINDEX[tempDate.getDay()]) > -1) {
3554
3554
  weekCollection.push([tempDate.getTime()]);
@@ -3558,7 +3558,7 @@ function weeklyType(startDate, endDate, data, ruleObject) {
3558
3558
  }
3559
3559
  tempDate.setDate(tempDate.getDate() + 1);
3560
3560
  compareTempDate = new Date(tempDate.getTime());
3561
- resetTime(compareTempDate);
3561
+ compareTempDate = resetTime(compareTempDate);
3562
3562
  }
3563
3563
  tempDate.setDate(tempDate.getDate() - 1);
3564
3564
  if (expectedCount && (data.length + ruleObject.recExceptionCount) >= expectedCount) {