ngx-wapp-components 3.2.32-alpha.6 → 3.2.32-alpha.7

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.
@@ -4579,14 +4579,16 @@ class WPeriodSelectFieldComponent {
4579
4579
  onPeriodCategorySelected() {
4580
4580
  const now = new Date();
4581
4581
  const last24 = new Date(now.getTime() - 24 * 60 * 60 * 1000);
4582
- const last3Months = new Date(now.setMonth(new Date().getMonth() - 3));
4582
+ //const last3Months = new Date(now.setMonth(new Date().getMonth() - 3));
4583
+ const last3Months = new Date(now);
4584
+ last3Months.setMonth(last3Months.getMonth() - 3);
4583
4585
  if (this.periodCategorySelected === PeriodSelectEnum.Last24Hours) {
4584
4586
  this.fromDateValue = last24;
4585
- this.toDateValue = now;
4587
+ this.toDateValue = new Date(now);
4586
4588
  }
4587
4589
  else if (this.periodCategorySelected === PeriodSelectEnum.Last3Months) {
4588
4590
  this.fromDateValue = last3Months;
4589
- this.toDateValue = now;
4591
+ this.toDateValue = new Date(now);
4590
4592
  }
4591
4593
  else {
4592
4594
  const startYesterday = new Date();