I've enabled USE_TZ as True and added TIME_ZONE as Asia/Calcutta in settings.py
So when I am inputting a date like datetime(2021, 11, 24) it is stored in db as 2021-11-23T18:30:00+00:00 which is fine.
But when I am getting the date in shell, it is not converting back in IST and just giving me datetime.datetime(2021, 11, 23, 18, 30, tzinfo=<UTC>) and whenever I have to display the date, it is showing 23 instead of 24 and I have to convert it manually everywhere like that:
from django.utils import timezone
if timezone.is_aware(status_time):
status_time = timezone.localtime(status_time)
But strangely in django admin it is showing me IST dates but not in django shell or anywhere else.
Is this the only way or I can have auto IST converted dates somehow?