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))
return '';
$date = new DateTime;
$date->setTimestamp($ts);
$date = new DateTime("@".$ts);
// convert to the right timezone
$stz = date_default_timezone_get();

Loading…
Cancel
Save