Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/change timezone #279

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading