Answer the question
In order to leave comments, you need to log in
Why is Django displaying times as MSK+3 and not UTC+3?
In settings.py :
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'Europe/Moscow'
USE_I18N = True
USE_L10N = True
USE_TZ = True
from django.utils import timezone
timezone.localtime(timezone.now())
datetime.datetime(2019, 9, 2, 21, 37, 4, 511034, tzinfo=<DstTzInfo 'Europe/Moscow' MSK+3:00:00 STD>)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question