PHP Kurangi mins menjadi datetime
$datetime_from = date("Y-m-d H:i", strtotime("-45 minutes", strtotime($thestime)));
Thoughtful Tiger
$datetime_from = date("Y-m-d H:i", strtotime("-45 minutes", strtotime($thestime)));