Answer the question
In order to leave comments, you need to log in
Why is django storing the wrong time?
System settings
LANGUAGE_CODE = 'ru'
TIME_ZONE = 'GMT'
USE_I18N = True
USE_L10N = True
USE_TZ = True
date_create = models.DateTimeField(auto_now_add = True, help_text='Дата создания')
Answer the question
In order to leave comments, you need to log in
And figure it out first with naive and aware datetime https://docs.djangoproject.com/en/3.1/topics/i18n/... well, the FAQ for one https://docs.djangoproject.com/en/3.1/topics /i18n/...
PS well, it's still customary to leave UTC, and not enter GMT, otherwise confusion and possible errors (I'm not sure here, I haven't checked)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question