From da1b1f69995f7c58a9daad9dd9456f34cfd6abcd Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 28 Feb 2023 09:05:49 -0700 Subject: [PATCH] Fix gantt chart couldn't load data broken by 2066523. Loading caused 'Exception "t is undefined" while handling JSON response from ....' deep inside dhtmlx-gantt --- api/js/etemplate/Et2Date/Et2Date.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Date/Et2Date.ts b/api/js/etemplate/Et2Date/Et2Date.ts index 7ccca3e3d2..c3b3d4e087 100644 --- a/api/js/etemplate/Et2Date/Et2Date.ts +++ b/api/js/etemplate/Et2Date/Et2Date.ts @@ -660,7 +660,11 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(LitFlatpickr)) { return flatpickr.formatDate(this.defaultDate, this.getOptions().dateFormat); } - return this._inputNode?.value + "Z" || ''; + if(typeof egwIsMobile == "function" && egwIsMobile()) + { + return this._inputNode?.value + "Z" || ""; + } + return this._inputNode?.value || ''; } let value = this._inputElement.value;