@acpaas-ui/ngx-forms 6.1.2 → 6.1.6

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.
@@ -483,7 +483,10 @@ class DatepickerComponent {
483
483
  const date = DateHelper.parseDate(format, 'yyyy-MM-dd');
484
484
  if (date) {
485
485
  this.selectedDate = date;
486
- this.onChange(date.toISOString());
486
+ const year = date.getFullYear();
487
+ const month = date.getMonth();
488
+ const day = date.getDate();
489
+ this.onChange(DateHelper.toUtcMidnightInBrussels(year, month, day));
487
490
  }
488
491
  else {
489
492
  // Change value with original value (and not null or '') so we can add an error in the validate function