diff options
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 3 |
1 files changed, 1 insertions, 2 deletions
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(); |