Change %I to %-I when reading time from calendar

This commit is contained in:
2023-06-01 13:55:42 -04:00
parent b37108eef5
commit 3f158d4d7b

View File

@ -35,7 +35,7 @@
{% endmacro %}
{% macro read_time_from_calendar(calendar,start_or_end) %}
{{ as_timestamp(strptime(state_attr(calendar,start_or_end), '%Y-%m-%d %H:%M:%S')) | timestamp_custom("%I:%M %p") }}
{{ as_timestamp(strptime(state_attr(calendar,start_or_end), '%Y-%m-%d %H:%M:%S')) | timestamp_custom("%-I:%M %p") }}
{% endmacro %}
{% macro set_datetime(hours,minutes,seconds) %}