From 6c0702e5e8fb5027254e459986f5a73edcc30221 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 06 Jan 2012 03:38:37 -0500
Subject: [PATCH] Avoid use of 5.2 functions (#1488292)

---
 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 b16f020..d71a82b 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1062,8 +1062,7 @@
   if (empty($ts))
     return '';
 
-  $date = new DateTime;
-  $date->setTimestamp($ts);
+  $date = new DateTime("@".$ts);
 
   // convert to the right timezone
   $stz = date_default_timezone_get();

--
Gitblit v1.9.1