Io uso questa funzione:
codice:
function now_to_mysql()
{
  return mdate('%Y-%m-%d %h:%i:%s', now());
}