from django.utils.timezone import template_localtime
env = Environment(**kwargs)
env.filters.update({'localtime': template_localtime})
Displaying local time using DateTimeFields in Jinja2 templates - Django