@arsedizioni/ars-utils 22.0.32 → 22.0.33
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.
|
@@ -203,7 +203,9 @@ class DateFnsAdapter extends DateAdapter {
|
|
|
203
203
|
throw Error('Formats array must not be empty.');
|
|
204
204
|
}
|
|
205
205
|
for (const currentFormat of formats) {
|
|
206
|
-
const fromFormat = parse(value, currentFormat, new Date(), {
|
|
206
|
+
const fromFormat = parse(value, currentFormat, new TZDate(new Date(), 'Europe/Rome'), {
|
|
207
|
+
locale: this.locale
|
|
208
|
+
});
|
|
207
209
|
if (this.isValid(fromFormat)) {
|
|
208
210
|
return new TZDate(fromFormat, 'Europe/Rome');
|
|
209
211
|
}
|