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?
Change your settings.py to:
settings.py
TIME_ZONE = 'Asia/Calcutta' USE_I18N = True USE_L10N = True USE_TZ = False
This should work.
For more information about the TIME_ZONE in Django you can see: https://docs.djangoproject.com/en/dev/ref/settings/#time-zone