Skip to content

Commit 552905d

Browse files
authored
Merge pull request #279 from MakeMonmouth/feature/change_timezone
Feature/change timezone
2 parents 8ab168e + ef02961 commit 552905d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/POST_INSTALL_STEPS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ However, as noted below, currencies will use a hardcoded value set by a configur
7272

7373
> NOTE: the `SITE_LOCALE_CURRENCY` option is what determines how the currency is displayed. This is "hardcoded" as a
7474
> config option to prevent a currency/billing amount being displayed incorrectly. If your locale isn't directly
75-
> supported, please open an issue or check below as your currency may already be supported under a different locale.
75+
> supported, please open an issue or check below as your currency may already be supported under a different locale.o
76+
77+
> NOTE: If you want to set the *server* timezone and language, export `MM_TIME_ZONE=<your area>/<your country>` and
78+
> `MM_LANGAUGE_CODE=<your-language-code>` before launching the server component. If you do not set these variables,
79+
> the server logs will default to `Australia/Brisbane` as the timezone and `en-au` as the default language.
7680
7781
#### Locale Options
7882
* `en-AU` - full translation available, currency format `$12.50`.

memberportal/membermatters/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@
330330
# Internationalization
331331
# https://docs.djangoproject.com/en/2.0/topics/i18n/
332332

333-
LANGUAGE_CODE = "en-au"
333+
LANGUAGE_CODE = os.getenv("MM_LANGUAGE_CODE", "en-au")
334334

335-
TIME_ZONE = "Australia/Brisbane"
335+
TIME_ZONE = os.getenv("MM_TIME_ZONE", "Australia/Brisbane")
336336
USE_I18N = True
337337
USE_L10N = True
338338
USE_TZ = True

0 commit comments

Comments
 (0)