We want to get the current time in India in our Django project. In settings.py, UTC is there by default. How do we change it to IST?
Keep TIME_ZONE = 'Asia/Kolkata' in settings.py file and restart the service from where you are accessing the timezone (server or shell). In my case, I restarted the python shell in which I was working and it worked fine for me.