@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.
- package/fesm2022/sebgroup-green-angular-src-v-angular-datepicker.mjs +2 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-datepicker.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-v-angular.mjs +2 -1
- package/fesm2022/sebgroup-green-angular-v-angular.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -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
|
-
|
|
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
|
}
|