mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4682] Fix displayed date in date time and date widget (#4911)
This commit is contained in:
committed by
Eugenio Romano
parent
cdc39759ca
commit
c151d4535c
@@ -70,7 +70,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.field.dateDisplayFormat);
|
||||
this.displayDate = moment(this.field.value);
|
||||
}
|
||||
|
||||
onDateChanged(newDateValue) {
|
||||
|
@@ -68,7 +68,7 @@ export class DateWidgetComponent extends WidgetComponent implements OnInit {
|
||||
this.maxDate = moment(this.field.maxValue, this.DATE_FORMAT);
|
||||
}
|
||||
}
|
||||
this.displayDate = moment(this.field.value, this.field.dateDisplayFormat);
|
||||
this.displayDate = moment(this.field.value);
|
||||
}
|
||||
|
||||
onDateChanged(newDateValue) {
|
||||
|
Reference in New Issue
Block a user