diff options
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 9b0dac85..301cd7db 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -124,7 +124,10 @@ def get_locale(): @babel.timezoneselector def get_timezone(): - return conf.TIME_ZONE[get_locale()] + try: + return conf.TIME_ZONE[get_locale()] + except: + return conf.TIME_ZONE["en"] # # Views. |