mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-24 08:14:13 +03:00
feat(templating): make TIMEZONE default to UTC and configurable
Thanks @burhan for reportings this. closes #109
This commit is contained in:
parent
1e279ba60e
commit
a9a729e500
|
@ -6,6 +6,7 @@
|
||||||
"description": "A short description of the project.",
|
"description": "A short description of the project.",
|
||||||
"domain_name": "example.com",
|
"domain_name": "example.com",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
|
"timezone": "UTC",
|
||||||
"now": "2015/01/13",
|
"now": "2015/01/13",
|
||||||
"year": "{{ cookiecutter.now[:4] }}"
|
"year": "{{ cookiecutter.now[:4] }}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,8 +126,12 @@ class Common(Configuration):
|
||||||
# END CACHING
|
# END CACHING
|
||||||
|
|
||||||
# GENERAL CONFIGURATION
|
# GENERAL CONFIGURATION
|
||||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#time-zone
|
|
||||||
TIME_ZONE = 'America/Los_Angeles'
|
# Local time zone for this installation. Choices can be found here:
|
||||||
|
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
|
||||||
|
# although not all choices may be available on all operating systems.
|
||||||
|
# In a Windows environment this must be set to your system time zone.
|
||||||
|
TIME_ZONE = '{{ cookiecutter.timezone }}'
|
||||||
|
|
||||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#language-code
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#language-code
|
||||||
LANGUAGE_CODE = 'en-us'
|
LANGUAGE_CODE = 'en-us'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user