I am trying to calculate the difference between to times in minutes and everytime i try it shows the incorrect time. I am not sure what I am doing wrong here. Below is my code. Any help would be really appreciate it.
$time_now = new DateTime("now",new DateTimeZone("America/New_York"));
$future_order_time = new DateTime("7:00 pm",new DateTimeZone("America/New_York"));
$interval = $time_now->diff($future_order_time);
echo $interval->format("%i");