@ -1062,8 +1062,7 @@ function format_date($date, $format=NULL, $convert=true)
if (empty($ts))
return '';
$date = new DateTime;
$date = new DateTime("@".$ts);
$date->setTimestamp($ts);
// convert to the right timezone
$stz = date_default_timezone_get();