diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt index af2a5474d8..6ed9004157 100644 --- a/docs/howto/custom-template-tags.txt +++ b/docs/howto/custom-template-tags.txt @@ -751,7 +751,7 @@ like so: .. code-block:: html+django - {% get_current_time "%Y-%M-%d %I:%M %p" as my_current_time %} + {% current_time "%Y-%M-%d %I:%M %p" as my_current_time %}
The current time is {{ my_current_time }}.
To do that, you'll need to refactor both the compilation function and ``Node``