mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-1235] - fix task completion with datetime form widget (#5340)
This commit is contained in:
committed by
Eugenio Romano
parent
dac0f72b96
commit
e0bc43d933
@@ -381,7 +381,7 @@ export class FormFieldModel extends FormWidgetModel {
|
||||
const dateTimeValue = moment(this.value, this.dateDisplayFormat, true).utc();
|
||||
if (dateTimeValue && dateTimeValue.isValid()) {
|
||||
/* cspell:disable-next-line */
|
||||
this.form.values[this.id] = dateTimeValue.format('YYYY-MM-DDTHH:mm:ssZ');
|
||||
this.form.values[this.id] = `${dateTimeValue.format('YYYY-MM-DDTHH:mm:ss')}.000Z`;
|
||||
} else {
|
||||
this.form.values[this.id] = null;
|
||||
this._value = this.value;
|
||||
|
Reference in New Issue
Block a user