Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95414

Template: format last_changed with local time

$
0
0

@ttmetro wrote:

How do I format the last_changed attribute of a state in local time? This code outputs the date as UTC:

{{ states.input_text.last_activity.last_changed.strftime('%H:%M %Y-%m-%d') }}

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95414

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>