Change %I to %-I when reading time from calendar
This commit is contained in:
@ -35,7 +35,7 @@
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro read_time_from_calendar(calendar,start_or_end) %}
|
{% 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 %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro set_datetime(hours,minutes,seconds) %}
|
{% macro set_datetime(hours,minutes,seconds) %}
|
||||||
|
Reference in New Issue
Block a user