I am using DjangoRestFramework as tech stack to develop backend API points for my application.
I have a model with field created = models.DateTimeField(auto_now_add=True) in one of the models.
I am using mysql as backend db, now the problem I am having is I am not able to figure out how the timestamp is being generated. timestamp is in UTC.
But I want to store IST standards i.e TimeZone 'Asia/Kolkata'
I can confirm mysql database time settings and Django TimeZone settings are working as expected i.e IST standards.
Kindly someone please help me in figuring how the timestamp is being generated wen I am posting data to the table.
Thanks and Regards,
Sampath