From 999df5cc3fe9f8b694ccbd26521ff7c9acf87e3d Mon Sep 17 00:00:00 2001
From: Matthew Macdonald-Wallace <matt@doics.co>
Date: Wed, 21 Aug 2024 08:27:45 +0100
Subject: [PATCH 1/2] Set the Timezone and Language via environment variables

---
 memberportal/membermatters/settings.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/memberportal/membermatters/settings.py b/memberportal/membermatters/settings.py
index 0791f8d2..268254f9 100644
--- a/memberportal/membermatters/settings.py
+++ b/memberportal/membermatters/settings.py
@@ -330,9 +330,9 @@
 # Internationalization
 # https://docs.djangoproject.com/en/2.0/topics/i18n/
 
-LANGUAGE_CODE = "en-au"
+LANGUAGE_CODE = os.getenv("MM_LANGUAGE_CODE", "en-au")
 
-TIME_ZONE = "Australia/Brisbane"
+TIME_ZONE = os.getenv("MM_TIME_ZONE", "Australia/Brisbane")
 USE_I18N = True
 USE_L10N = True
 USE_TZ = True

From ef029613d7ef777f09f40dbfa80417440d461e52 Mon Sep 17 00:00:00 2001
From: Matthew Macdonald-Wallace <matt@doics.co>
Date: Wed, 21 Aug 2024 08:32:59 +0100
Subject: [PATCH 2/2] Add env vars to docs

---
 docs/POST_INSTALL_STEPS.md | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/docs/POST_INSTALL_STEPS.md b/docs/POST_INSTALL_STEPS.md
index 4369e7d2..35c3a426 100644
--- a/docs/POST_INSTALL_STEPS.md
+++ b/docs/POST_INSTALL_STEPS.md
@@ -72,7 +72,11 @@ However, as noted below, currencies will use a hardcoded value set by a configur
 
 > NOTE: the `SITE_LOCALE_CURRENCY` option is what determines how the currency is displayed. This is "hardcoded" as a 
 > config option to prevent a currency/billing amount being displayed incorrectly. If your locale isn't directly 
-> supported, please open an issue or check below as your currency may already be supported under a different locale.
+> supported, please open an issue or check below as your currency may already be supported under a different locale.o
+
+> NOTE: If you want to set the *server* timezone and language, export `MM_TIME_ZONE=<your area>/<your country>` and 
+> `MM_LANGAUGE_CODE=<your-language-code>` before launching the server component.  If you do not set these variables,
+> the server logs will default to `Australia/Brisbane` as the timezone and `en-au` as the default language.
  
 #### Locale Options
 * `en-AU` - full translation available, currency format `$12.50`.