mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +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.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) {
|
onDateChanged(newDateValue) {
|
||||||
|
@@ -68,7 +68,7 @@ export class DateWidgetComponent extends WidgetComponent implements OnInit {
|
|||||||
this.maxDate = moment(this.field.maxValue, this.DATE_FORMAT);
|
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) {
|
onDateChanged(newDateValue) {
|
||||||
|
Reference in New Issue
Block a user