From e0bc43d9330c0862265f3699ea76f2a89a9a6e39 Mon Sep 17 00:00:00 2001 From: Silviu Popa Date: Fri, 17 Jan 2020 16:38:56 +0200 Subject: [PATCH] [AAE-1235] - fix task completion with datetime form widget (#5340) --- lib/core/form/components/widgets/core/form-field.model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/form/components/widgets/core/form-field.model.ts b/lib/core/form/components/widgets/core/form-field.model.ts index f3ebed421a..b6d92a8a08 100644 --- a/lib/core/form/components/widgets/core/form-field.model.ts +++ b/lib/core/form/components/widgets/core/form-field.model.ts @@ -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;