Help converting the time 8:00 to 20:00

Hi all :pray:

I have created a Scrape sensor that get a match time “8:00” from the internet

it works fine, but when I use it for automation, It confuses AM with PM .

This template output 8:00, is there a way to make it 20:00
{{ (states(‘sensor.match_time’)) | timestamp_custom(’%H:%M’, 0) }}

the value stored in the sensor “sensor.match_time” is 8:00 exactly


You don’t get AMP/PM from the scraping sensor?


{{ (today_at(states('sensor.match_time')) + timedelta(hours = 12)).strftime('%H:%M') }}

absolute magic !!

:kissing_heart: :kissing_heart: :kissing_heart:

Thank you very much