How to add Indian Standard Time (IST) in Django?

Use Below settings its worked for me. TIME_ZONE = 'Asia/Kolkata'

USE_I18N = True

USE_L10N = True

USE_TZ = False


check django_timezones! this may help others too it consists of all other timezones for references


TIME_ZONE =  'Asia/Kolkata'

USE_I18N = True

USE_L10N = True

USE_TZ = True

The above settings should work


Change the field TIME_ZONE in the settings.py. For the Indian standard time you will need:

TIME_ZONE =  'Asia/Kolkata'

For more information about the TIME_ZONE in Django you can see: https://docs.djangoproject.com/en/dev/ref/settings/#time-zone

Tags:

Python

Django