ho risolto così:
Codice PHP:
<?php 
include ('conf.php');

$sqlselect=('SELECT data, idatto from atti');
$lettura_risultati=mysql_query("$sqlselect");
  while(
$scatola_temporanea=mysql_fetch_array($lettura_risultati)){
  
$data=eur_to_time($scatola_temporanea['data']);

$idatto=$scatola_temporanea['idatto'];

$aggiorna=mysql_query("UPDATE atti SET newdata = \"$data 00:00:00\" where idatto = $idatto") or die( mysql_error() ) ;
}
?>
Grazie per il tempo che mi hai dedicato.