Avoid use of 5.2 functions (#1488292)

pull/1/head
thomascube 13 years ago
parent 1c2f08e996
commit 6c0702e5e8

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

Loading…
Cancel
Save