public static function convert_kickoff_time($kickoff) { $data = explode(" ", $kickoff); $month = Fixture::get_month_year_array(); $timezone = Fixture::get_match_timezone(); $timestamp = $month[$data[1]]["year"] . "-" . $month[$data[1]]["month"] . "-" . $data[0] . " {$data[2]}:00"; $date = new DateTime($timestamp, $timezone); return $date->format("Y-m-d H:i:s"); }