diff --git a/api/js/etemplate/Et2Date/Et2Date.ts b/api/js/etemplate/Et2Date/Et2Date.ts index ca69728fdd..fa555a6ab1 100644 --- a/api/js/etemplate/Et2Date/Et2Date.ts +++ b/api/js/etemplate/Et2Date/Et2Date.ts @@ -660,9 +660,9 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(LitFlatpickr)) { return flatpickr.formatDate(this.defaultDate, this.getOptions().dateFormat); } - if(typeof egwIsMobile == "function" && egwIsMobile()) + if(typeof egwIsMobile == "function" && egwIsMobile() && this._inputNode?.value) { - return this._inputNode?.value + "Z" || ""; + return this._inputNode?.value + "Z"; } return this._inputNode?.value || ''; }