mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-07 17:36:50 +00:00
correct template examples sun.sun (#28379)
This commit is contained in:
parent
9908c2ccfa
commit
b9db682c01
@ -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 %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user