From b62326409a22a8c79ae0115713f8cd0431af05a9 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Mon, 27 Sep 2021 10:54:17 +0200 Subject: [PATCH] Clarify `timestamp_local` and `timestamp_utc` template filters (#19441) --- source/_docs/configuration/templating.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index a1a55acb75c..0e4e5c89db9 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -293,8 +293,8 @@ The same thing can also be expressed as a filter: {% endraw %} -- Filter `timestamp_local` converts an UNIX timestamp to its string representation as date/time in your local timezone. -- Filter `timestamp_utc` converts a UNIX timestamp to its string representation representation as date/time in UTC timezone. +- Filter `timestamp_local` converts an UNIX timestamp to its naive string representation as date/time in your local timezone. If timezone information is needed in the string, use `timestamp_custom` instead. +- Filter `timestamp_utc` converts a UNIX timestamp to its naive string representation representation as date/time in UTC timezone. If timezone information is needed in the string, use `timestamp_custom` instead. - Filter `timestamp_custom(format_string, local_time=True)` converts an UNIX timestamp to its string representation based on a custom format, the use of a local timezone is default. Supports the standard [Python time formatting options](https://docs.python.org/3/library/time.html#time.strftime).