From 6c0702e5e8fb5027254e459986f5a73edcc30221 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 6 Jan 2012 08:38:37 +0000 Subject: Avoid use of 5.2 functions (#1488292) --- program/include/main.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'program/include') diff --git a/program/include/main.inc b/program/include/main.inc index b16f0202a..d71a82ba5 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -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(); -- cgit v1.2.3