mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5857] fixed date parsing and linting
This commit is contained in:
+1
-1
@@ -102,7 +102,7 @@ export class DateCloudWidgetComponent extends WidgetComponent implements OnInit,
|
||||
}
|
||||
|
||||
onDateChanged(newDateValue) {
|
||||
const date = new Date(newDateValue);
|
||||
const date = this.dateFormatTranslationService.parse(newDateValue, this.field.dateDisplayFormat, new Date());
|
||||
if (isValid(date)) {
|
||||
this.field.value = this.dateFormatTranslationService.format(date, this.field.dateDisplayFormat);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user