Django 模型日期时间在模板中与数据库不同

Django model datetime is different in template than the database

添加的日期数据正常添加到数据库中。外观相差3小时

这是我在管理面板上保存的数据:

该数据在模板上的视图:

设置:

LANGUAGE_CODE = 'tr'

TIME_ZONE = 'Europe/Istanbul'

USE_I18N = True

USE_L10N = True

USE_TZ = True

Python版本:3.8.3

Django 版本:3.1.1

试试这个;

USE_TZ = False

看看这些;

https://docs.djangoproject.com/en/3.1/topics/i18n/timezones/