From a4fd1268def16202b71f71915d16662787e646a5 Mon Sep 17 00:00:00 2001 From: Stefano Fancello Date: Tue, 19 Dec 2023 14:59:59 +0100 Subject: [PATCH] Add timezone to get-configuration --- imageroot/actions/get-configuration/20read | 1 + imageroot/actions/get-configuration/validate-output.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/imageroot/actions/get-configuration/20read b/imageroot/actions/get-configuration/20read index ad6288bb2..617e56870 100755 --- a/imageroot/actions/get-configuration/20read +++ b/imageroot/actions/get-configuration/20read @@ -15,6 +15,7 @@ config = { 'nethvoice_host': os.getenv('NETHVOICE_HOST', ''), 'nethcti_ui_host': os.getenv('NETHCTI_UI_HOST', ''), 'lets_encrypt': os.getenv('TRAEFIK_LETS_ENCRYPT') == 'True', + 'timezone': os.getenv('TIMEZONE', 'UTC'), 'user_domain': os.getenv('USER_DOMAIN', ''), 'reports_international_prefix': os.getenv('REPORTS_INTERNATIONAL_PREFIX', '') } diff --git a/imageroot/actions/get-configuration/validate-output.json b/imageroot/actions/get-configuration/validate-output.json index cee3a7374..85967b2a4 100644 --- a/imageroot/actions/get-configuration/validate-output.json +++ b/imageroot/actions/get-configuration/validate-output.json @@ -18,6 +18,10 @@ "description": "Enable Let's Encrypt certificate", "type": "boolean" }, + "timezone": { + "description": "Timezone for the Nethvoice instance", + "type": "string" + }, "user_domain": { "description": "Domain where the user accessing Nethvoice are stored", "type": "string"