From c8dda7478f4f86eaa0519f7b795b0cf87ef41306 Mon Sep 17 00:00:00 2001 From: Daniel D'Abate Date: Sat, 18 Dec 2021 15:57:46 +0100 Subject: [PATCH] Fix timestamp_custom example (#20739) --- source/_docs/configuration/templating.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index 08c1a5fc02e..95c2ab30150 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -691,7 +691,7 @@ The following overview contains a couple of options to get the needed values: # Timestamps {{ value_json.tst | timestamp_local }} {{ value_json.tst | timestamp_utc }} -{{ value_json.tst | timestamp_custom('%Y' True) }} +{{ value_json.tst | timestamp_custom('%Y', True) }} ``` {% endraw %}