Alexa Media TTS reading time in 12hr not 24hr

I have a script that I run before i go to bed to tell me what time my alarm clock is set for that works great but I have been working a more PM schedule so the alarm is set for 2:00 PM and 3:00 PM but alexa reads the time in 24 hour time.

The clock itself it’s reading does shoe 12hr time just wanted to see if there was something I could add to the script to get Alexa TTS to read the 12 hour time.

alias: Alarm Status TTS Alexa
sequence:
 - condition: time
   weekday:
     - mon
     - tue
     - wed
     - thu
     - sun
     - fri
     - sat
   after: "21:00:00"
   before: "11:00:00"
 - condition: state
   entity_id: input_boolean.wakeup_enabled
   state: "on"
 - data:
     data:
       type: tts
     message: " \"The alarm clock is {{ states('input_boolean.wakeup_enabled') }} and set for {{ states('input_datetime.wakeup_time') }}. Sleep well"
   action: notify.alexa_media_bed_echo
mode: single
icon: mdi:alarm
description: ""

Is your Input datetime time-only or date-and-time?

If time-only replace {{ states('input_datetime.wakeup_time') }} with:

{{ today_at(states('input_datetime.wakeup_time')).strftime('%-I:%M %p') }}

For date-and-time replace it with:

{{ (states('input_datetime.wakeup_time')|as_datetime|as_local).strftime('%-I:%M %p') }}

This worked perfectly thank you!!