iptdevs-design-system 2.7.63 → 2.7.65

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.
@@ -24,7 +24,6 @@ import { MatIconModule } from '@angular/material/icon';
24
24
  import { MatButtonModule } from '@angular/material/button';
25
25
  import * as i2 from 'primeng/button';
26
26
  import { ButtonModule } from 'primeng/button';
27
- import * as moment from 'moment';
28
27
  import { BehaviorSubject, map } from 'rxjs';
29
28
  import * as i9 from 'primeng/table';
30
29
  import { TableModule } from 'primeng/table';
@@ -3384,7 +3383,9 @@ class CalculateQuotesService {
3384
3383
  return plusMonthDate;
3385
3384
  }
3386
3385
  getStringDate(originDate) {
3387
- return originDate.getFullYear() + ' - ' + (originDate.getMonth() + 1) + ' - ' + originDate.getDate();
3386
+ let month = originDate.getMonth() + 1;
3387
+ let stringMonth = month < 10 ? '0' + month : month;
3388
+ return originDate.getFullYear() + '-' + stringMonth + '-' + originDate.getDate();
3388
3389
  }
3389
3390
  }
3390
3391
  CalculateQuotesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalculateQuotesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
@@ -3796,11 +3797,11 @@ class CodFormComponent {
3796
3797
  saveFinancingData(data) {
3797
3798
  if (data) {
3798
3799
  const dates = [];
3800
+ console.log('-----');
3801
+ console.log(data);
3799
3802
  data.forEach(p => {
3800
- const date = p[2].split(',')[1];
3801
- const formattedDate = new Date(date);
3802
- const momentDate = moment(formattedDate).format().split('T')[0];
3803
- dates.push(momentDate);
3803
+ const date = p[2];
3804
+ dates.push(date);
3804
3805
  });
3805
3806
  this.financingData = dates;
3806
3807
  }