@alfresco/adf-core 8.4.0-21351363852 → 8.4.0-21352430786
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/adf-core.mjs
CHANGED
|
@@ -21226,7 +21226,14 @@ class FormFieldModel extends FormWidgetModel {
|
|
|
21226
21226
|
}
|
|
21227
21227
|
let dateValue;
|
|
21228
21228
|
try {
|
|
21229
|
-
|
|
21229
|
+
let dateWithProperFormat;
|
|
21230
|
+
if (typeof this.value === 'string') {
|
|
21231
|
+
dateWithProperFormat = DateFnsUtils.formatDate(this.value, this.dateDisplayFormat);
|
|
21232
|
+
}
|
|
21233
|
+
else {
|
|
21234
|
+
dateWithProperFormat = this.value;
|
|
21235
|
+
}
|
|
21236
|
+
dateValue = DateFnsUtils.parseDate(dateWithProperFormat, this.dateDisplayFormat);
|
|
21230
21237
|
}
|
|
21231
21238
|
catch {
|
|
21232
21239
|
dateValue = new Date('error');
|