I am using the latest version of Django and enabled time zone support. My settings are:
USE_TZ = True TIME_ZONE = 'UTC'
I also did set the current time zone to the end user’s actual time zone with activate() using a middleware as mentioned in the Django time zone documentation.
I have tested that Django converts aware datetime objects to the user’s time zone when they’re rendered in django templates… but not in Jinja2 templates.
So I am wondering is it possible to convert aware datetime objects to the activated time zone in Jinja2 templates by default without any filters or tags…?
Also what about the forms in Jinja2 ?