well, you can always use the SQL "NOW()" function
$sql = "INSERT INTO table (dateTime) values (NOW())";
works just fine for me, no stress no mess, it works for all date and time field types equally well... just think, you'll never have to format a timestamp for MySQL ever again 🙂