Set timezone from TZ env variable
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c6bb60bbbb
commit
1a2f0b974d
|
@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/4.1/ref/settings/
|
|||
|
||||
from pathlib import Path
|
||||
import logging
|
||||
import os
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
@ -107,7 +108,7 @@ AUTH_PASSWORD_VALIDATORS = [
|
|||
|
||||
LANGUAGE_CODE = "en-us"
|
||||
|
||||
TIME_ZONE = "UTC"
|
||||
TIME_ZONE = os.environ["TZ"]
|
||||
|
||||
USE_I18N = True
|
||||
|
||||
|
|
Loading…
Reference in New Issue