Skip to content

Commit

Permalink
Merge pull request #279 from MakeMonmouth/feature/change_timezone
Browse files Browse the repository at this point in the history
Feature/change timezone
  • Loading branch information
jabelone authored Aug 22, 2024
2 parents 8ab168e + ef02961 commit 552905d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion docs/POST_INSTALL_STEPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions memberportal/membermatters/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 552905d

Please sign in to comment.