@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
|
@@ -1333,7 +1333,8 @@ class DateControlValueAccessorComponent {
|
|
|
1333
1333
|
return null;
|
|
1334
1334
|
// if value-as-date is a valid date object, parse the value to YYYY-MM-DD format
|
|
1335
1335
|
case typeof value?.getMonth === 'function':
|
|
1336
|
-
|
|
1336
|
+
const date = new Date(value.getTime() - value.getTimezoneOffset() * 60 * 1000);
|
|
1337
|
+
return date.toISOString().split('T')[0];
|
|
1337
1338
|
default:
|
|
1338
1339
|
return value;
|
|
1339
1340
|
}
|