I am using the following code to display the time set in an input_datetime entity, but the code below shows the time at 3:51PM. When the entity is actually 9:51PM.
{% set time = state_attr('input_datetime.garden_watering_stop_time', 'timestamp') %}
{{ time | timestamp_custom('%I:%M %p') }}