Ho risolto!
codice:
<?PHP
$time = time();
$data = date("Y,m,d,H,i,s", $time);
?>
<script language="JavaScript" type="text/javascript">
var counter = 0;
function refresh()
{
counter = counter + 1000;
now = new Date(<?=$data?>);//<?= $time ?> +counter);
now.setTime(now.getTime()+counter);
hour=now.getHours();
min=now.getMinutes();
sec=now.getSeconds();
giorno = now.getDate();
mese = now.getMonth();
anno = now.getFullYear();
if (min<=9) { min="0"+min; }
if (sec<=9) { sec="0"+sec; }
document.timeForm.field.value = giorno + "-" + mese + "-" + anno + " " +((hour<=9) ? "0"+hour : hour) + ":" + min + ":" + sec;
setTimeout("refresh()", 1000);
}
window.onload = refresh;
</script>
Grazie mille per l'aiuto iniziale