php: convert milliseconds to date
You are already doing it right, 1227643821 is simply not 02-12-2008, it is indeed 25-11-2008.
I just added H:i:s like in the below example:
$mil = 1227643821310;
$seconds = $mil / 1000;
echo date("d/m/Y H:i:s", $seconds);