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?
Adding to Jon Answer, If timezone.now() still not working after changing the TIME_ZONE='Asia/Kolkata'.
timezone.now()
TIME_ZONE='Asia/Kolkata'
Instead of timezone.now() you can use timezone.localtime().
timezone.localtime()
Hope it solves.. :)