mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
remove hardcoded date format (#1779)
This commit is contained in:
committed by
Mario Romano
parent
b5008fd7b1
commit
49dffb8784
+2
-1
@@ -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