Requires {% load tz %}
Add {% load tz %} near the top of any template that
uses {% localtime %}. Without it Django does not
know the name and raises TemplateSyntaxError.
Controls whether datetimes inside the block are converted to the current time zone.
Template
{% load tz %}
{% localtime off %}
{{ value }}
{% endlocaltime %}
With it off, aware datetimes render in UTC — occasionally what a log view or an API-ish page wants.
