Add code-block wrappers to code examples in playbooks_filters.rst (#79093)

Fixes #79029
pull/79097/head
Sharif Nassar 2 years ago committed by GitHub
parent a48c442275
commit dfef3260a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2132,7 +2132,9 @@ To format a date using a string (like with the shell date command), use the "str
.. versionadded:: 2.13
strftime takes an optional utc argument, defaulting to False, meaning times are in the local timezone::
strftime takes an optional utc argument, defaulting to False, meaning times are in the local timezone:
.. code-block:: yaml+jinja
{{ '%H:%M:%S' | strftime }} # time now in local timezone
{{ '%H:%M:%S' | strftime(utc=True) }} # time now in UTC

Loading…
Cancel
Save