diff --git a/application/Espo/Tools/LeadCapture/FormService.php b/application/Espo/Tools/LeadCapture/FormService.php index 2529d27d5a..321228aa0c 100644 --- a/application/Espo/Tools/LeadCapture/FormService.php +++ b/application/Espo/Tools/LeadCapture/FormService.php @@ -226,6 +226,10 @@ class FormService 'currencyList', 'currencyDecimalPlaces', 'addressFormat', + 'dateFormat', + 'timeFormat', + 'timeZone', + 'weekStart', ]; $data = []; diff --git a/client/src/views/lead-capture/form.js b/client/src/views/lead-capture/form.js index 10074f62cf..c1bbd46d6a 100644 --- a/client/src/views/lead-capture/form.js +++ b/client/src/views/lead-capture/form.js @@ -92,6 +92,7 @@ export default class LeadCaptureFormView extends View { this.getConfig().setMultiple(this.formData.config); this.getHelper().appParams.setAll(this.formData.appParams); this.getHelper().fieldManager.defs = this.getMetadata().get('fields'); + this.getDateTime().setSettingsAndPreferences(this.getConfig(), this.getPreferences()); if (this.formData.captchaKey) { // noinspection JSUnresolvedReference