[Django]-Django: Timezone stored in MySQL DB is not correct

6👍

Typically, database will store the UTC time by default and the corresponding application will do the conversion based on the settings/configurations.

In your case, it depends on your USE_TZ setting.

When USE_TZ is False, this is the time zone in which Django will store
all datetimes. When USE_TZ is True, this is the default time zone that
Django will use to display datetimes in templates and to interpret
datetimes entered in forms.

For more details, you can refer

4👍

it’s working now. I just set USE_TZ = False

Leave a comment