From b9db682c01eabedec29c337a293ae11b0394fb1c Mon Sep 17 00:00:00 2001 From: Marius <33354141+Mariusthvdb@users.noreply.github.com> Date: Mon, 31 Jul 2023 18:24:29 +0200 Subject: [PATCH] correct template examples sun.sun (#28379) --- 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 70930821793..c0c25b1ccad 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -631,7 +631,7 @@ If your template is returning a timestamp that should be displayed in the fronte {% raw %} -`{{ states.sun.sun.last_changed }}` => `2021-01-24 07:06:59+00:00` (missing "T" separator) +`{{ states.sun.sun.last_changed }}` => `2023-07-30 20:03:49.253717+00:00` (missing "T" separator) {% endraw %} @@ -639,7 +639,7 @@ To fix it, enforce the ISO conversion via `isoformat()`: {% raw %} -`{{ states.sun.sun.last_changed.isoformat() }}` => `2021-01-24T07:06:59+00:00` (contains "T" separator) +`{{ states.sun.sun.last_changed.isoformat() }}` => `2023-07-30T20:03:49.253717+00:00` (contains "T" separator) {% endraw %}