|localtime Filter

converts a datetime to the current time zone.

Date and Time As Markdown

Argument
None
Requires
{% load tz %}

Documentation

Converts one aware datetime to the current time zone, regardless of the surrounding {% localtime %} setting.

Template

{% load tz %}
{{ value|localtime }}

More Date and Time Filters

All Date and Time Filters


Did we get something wrong? Is there a use case for the localtime filter that we should add? Please let us know.

Send Feedback

Official Documentation
This page last updated on August 20, 2026