summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-01-06 08:38:37 +0000
committerthomascube <thomas@roundcube.net>2012-01-06 08:38:37 +0000
commit6c0702e5e8fb5027254e459986f5a73edcc30221 (patch)
treecde4a21bcfb5c973b6388defc303a01985016b2e /program/include/main.inc
parent1c2f08e996939db87e00987640be7c52d5836e16 (diff)
Avoid use of 5.2 functions (#1488292)
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc3
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();