mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
remove hardcoded date format (#1779)
This commit is contained in:
committed by
Eugenio Romano
parent
7657c1e633
commit
aa9269291a
@@ -117,7 +117,8 @@ export class DisplayValueWidget extends WidgetComponent implements OnInit {
|
||||
if (this.value) {
|
||||
let d = moment(this.value.split('T')[0], 'YYYY-M-D');
|
||||
if (d.isValid()) {
|
||||
this.value = d.format('D-M-YYYY');
|
||||
const displayFormat = originalField['dateDisplayFormat'] || this.field.defaultDateFormat;
|
||||
this.value = d.format(displayFormat);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user