JLindvig

Local time

Jan 24th, 2021
965
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local_date:
  2.   value_template: ->
  3.    {% set weekdays_dk = ["Søn", "Man", "Tirs", "Ons", "Tors", "Fre", "Lør"] %}
  4.     {% set ts = as_timestamp(now()) %}
  5.     {{ weekdays_dk[ts | timestamp_custom('%w') | int] }} {{ ts | timestamp_custom('%d.%m.%y') }}
  6.  
RAW Paste Data