Answer the question
In order to leave comments, you need to log in
Why does django return date always in UTC?
Please tell me why django returns date in utc regardless of settings:
LANGUAGE_CODE = 'ru-ru'
TIME_ZONE = 'Europe/Moscow'
USE_I18N = True
USE_L10N = True
USE_TZ = True
Answer the question
In order to leave comments, you need to log in
because dates are stored in UTC and are converted to the desired time zone when output
{% load tz %}
{{ value|localtime }}
{% localtime on %}
{{ value }}
{% endlocaltime %}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question