Answer the question
In order to leave comments, you need to log in
Why, after adding an object through the django admin panel, the time is written to the database equal to the specified minus 3 hours?
Hello!
I add an object through the admin panel, specify the date and time in the DateTimeField, and save it.
The list displays the created object with the date equal to the current minus 3 hours.
For example:
Perhaps the premise was changing USE_L10N to false, but then I changed it back to true ..
Before that, everything seems to have always been fine.
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
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