FlightAware Discussions

Sending SetAlert with date_start && date_end not recieving alerts

When I send a set alert with date_start & date_end equal to the same date (so that the notification only runs for the day of the actual flight) I am not recieving notifications. Thoughts?

export async function setAlertId(milestone: Milestone) {
    let alert_id;
    const data = new FormData();
    data.append('alert_id', 0);
    data.append('ident', `${milestone.airline.name}${milestone.flight_number}`);
    data.append('origin', milestone.airport.icao);
    /* data.append('date_start', new Date(milestone.flight_time).getTime() / 1000); */
    /* data.append('date_end', new Date(milestone.flight_time).getTime() / 1000); */
    data.append('channels', '{16 e_filed e_departure e_arrival e_diverted e_cancelled}');
    try {
        alert_id = await axios.post<{SetAlertResult: number}>(flightAwareUrls.setAlert, data, {
            headers: {...flightAwareAuthHeaders, ...data.getHeaders()},
            withCredentials: true
        }).then(res => res.data)
    } catch(err) {
        console.log(err)
    }
    return alert_id;
}