mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[ADF-4754] Fix Date Widget display value (#4945)
This commit is contained in:
parent
1108e2e77a
commit
c98687d6f0
@ -75,7 +75,7 @@ export class DateTimeWidgetComponent extends WidgetComponent implements OnInit,
|
||||
this.maxDate = moment(this.field.maxValue, 'YYYY-MM-DDTHH:mm:ssZ');
|
||||
}
|
||||
}
|
||||
this.displayDate = moment(this.field.value);
|
||||
this.displayDate = moment(this.field.value, this.field.dateDisplayFormat);
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
|
@ -73,7 +73,7 @@ export class DateWidgetComponent extends WidgetComponent implements OnInit, OnDe
|
||||
this.maxDate = moment(this.field.maxValue, this.DATE_FORMAT);
|
||||
}
|
||||
}
|
||||
this.displayDate = moment(this.field.value);
|
||||
this.displayDate = moment(this.field.value, this.field.dateDisplayFormat);
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user