From 7f1e387c819ce54743ed4b47c752a4019b86cb26 Mon Sep 17 00:00:00 2001 From: konrad Date: Sun, 23 Jan 2011 20:30:52 +0000 Subject: [PATCH] make language manager compatible with PHP 5.2 git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@714 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- www/inc/classes/language_manager.php | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/www/inc/classes/language_manager.php b/www/inc/classes/language_manager.php index ee12055..42eef99 100644 --- a/www/inc/classes/language_manager.php +++ b/www/inc/classes/language_manager.php @@ -133,8 +133,7 @@ class LanguageManager { $out=""; //parse - $time=new DateTime; - $time->setTimestamp($date+0); + $time=new DateTime("@".($date+0),$this->timezone); $time->setTimeZone($this->timezone); $inp=false; for($i=0;$i