@sebgroup/green-angular 8.0.0 → 8.1.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.
@@ -448,7 +448,8 @@ class DateControlValueAccessorComponent {
448
448
  return null;
449
449
  // if value-as-date is a valid date object, parse the value to YYYY-MM-DD format
450
450
  case typeof value?.getMonth === 'function':
451
- return new Intl.DateTimeFormat('sv-SE').format(value);
451
+ const date = new Date(value.getTime() - value.getTimezoneOffset() * 60 * 1000);
452
+ return date.toISOString().split('T')[0];
452
453
  default:
453
454
  return value;
454
455
  }